mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
Fix usage of history_filename
This commit is contained in:
parent
b13f0701a4
commit
226cdc6a28
|
@ -1680,8 +1680,7 @@ void history_t::populate_from_config_path()
|
|||
int src_fd = wopen_cloexec(old_file, O_RDONLY, 0);
|
||||
if (src_fd != -1)
|
||||
{
|
||||
wcstring new_file;
|
||||
history_filename(new_file, L"");
|
||||
wcstring new_file = history_filename(name, wcstring());
|
||||
|
||||
/* clear must come after we've retrieved the new_file name,
|
||||
and before we open destination file descriptor,
|
||||
|
|
Loading…
Reference in New Issue
Block a user