mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Use updated file id
This restores behavior from before f438e80f9b.
The file id changes when data is written to the file, so it needs to be updated
with data obtained after the updates to the file are completed.
This commit is contained in:
@@ -711,7 +711,7 @@ fn save_internal_via_appending(&mut self, history_path: &wstr) -> std::io::Resul
|
||||
// write.
|
||||
// We don't update `self.file_contents` since we only appended to the file, and everything we
|
||||
// appended remains in our new_items
|
||||
self.history_file_id = file_id;
|
||||
self.history_file_id = file_id_for_file(locked_history_file.get());
|
||||
|
||||
drop(locked_history_file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user