diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 12:42:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 137adecd03be209901efb228d9288282bc36c8de (patch) | |
| tree | 926602189d90c20a88e85db24f31001c118b7646 /src/pardes.zig | |
| parent | c6b0748b15c1ba222df83f91494a13423a33718c (diff) | |
| download | pardes-137adecd03be209901efb228d9288282bc36c8de.tar.gz pardes-137adecd03be209901efb228d9288282bc36c8de.zip | |
+Unsaved drops a pane once it has closed
The list kept a pane's Modified row after the pane was closed (discarded), so it named text there was no longer anything to lose of. A pane's closing now takes its row out.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index c405c3d9..2649014a 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -4898,6 +4898,7 @@ pub const Pardes = struct { // Closed, a file is remembered with its dot: Recent and a jump back // to it reopen it there. p.noteClosed(pane); + panes.Output.dropUnsaved(p, pane); const watched = (if (pane.file) |f| f.output == null else false) or pane.hasPdf(); for (p.panes, 0..) |slot, id| if (slot == pane) { if (watched) p.emit(.{ .watch = .{ .pane = @intCast(id), .on = false } }); |
