From f02c10bfa6d02d305ddb6d7a28b12c40035274c7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 30 Sep 2026 21:16:32 -0300 Subject: A Restore brings back clean a pane whose file was never on disk, such as Config's new init; only a file that existed when dumped is said deleted A restored pane whose path was not on disk was marked deleted on disk, so Config's not-yet-written init came back dirty and asked before Del, Exit or Restore. The dump now records whether the file was on disk (older dumps read as yes), and only one that was and is gone is said deleted. Co-Authored-By: Claude Opus 5.5 --- src/dump.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dump.zig') diff --git a/src/dump.zig b/src/dump.zig index 4194f628..983d5894 100644 --- a/src/dump.zig +++ b/src/dump.zig @@ -209,6 +209,10 @@ pub const File = struct { content: []const u8 = "", content_b64: []const u8 = "", dirty: bool = false, + /// Its file was on disk when dumped: one gone by the Restore is said + /// deleted, one never written (Config's new file) is not. True in + /// older dumps. + on_disk: bool = true, tree_context: bool = false, location_rows: []const LocationRow = &.{}, // Builtin names remain stable when enum ordinals change. -- cgit v1.3