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:
Daniel Rainer
2025-08-08 19:53:36 +02:00
parent 51fd00c98f
commit 9c4c28da9d

View File

@@ -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);