From 9c4c28da9d5fed1f0c75ff0abd5e247d9fd32810 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Fri, 8 Aug 2025 19:53:36 +0200 Subject: [PATCH] Use updated file id This restores behavior from before f438e80f9b9dcd6a7d31e60582c35f02ef6569c5. 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. --- src/history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history.rs b/src/history.rs index 4f66d2957..c303ff5c3 100644 --- a/src/history.rs +++ b/src/history.rs @@ -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);