summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 18:00:49 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit33bb985d6d167af6866a5667ad027db5c2ad6b7c (patch)
tree8db25f33220b0e5425b65662860e57890393fa26 /src/panes.zig
parentcbb6f821c29ede01648cdd41d2f1d2259a387645 (diff)
downloadpardes-33bb985d6d167af6866a5667ad027db5c2ad6b7c.tar.gz
pardes-33bb985d6d167af6866a5667ad027db5c2ad6b7c.zip
get on a pane with unsaved edits refuses once, as acme's does
A ctl get threw unsaved text away at once. acme's get asks winclean first (exec.c:513): warned once, the same get again discards. A pane dirty only because it was renamed has no text to lose, and is not asked about. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panes.zig b/src/panes.zig
index 8049da4e..a7e5c668 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -25,7 +25,7 @@ pub const EditText = struct { text: []u8, row0: i32 };
pub const Pane = struct {
/// The words that throw unsaved text away (builtins.zig warnModified).
- pub const Discarding = enum { Exit, Restore };
+ pub const Discarding = enum { Exit, Restore, get };
/// One mouse selection (block-shaped), per button. c/r are text-area relative;
/// r counts from the tag's first row (the body starts at Pane.tag_rows).