diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 23:26:47 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | fd448801b83bdddf27a1d9af17bf8581356b2b35 (patch) | |
| tree | efb2ef616daf0e99ec6a278eabe3e9086ceba837 /src/panes.zig | |
| parent | 72129eba38522de8f3d0ec6d98b612676d226612 (diff) | |
| download | pardes-fd448801b83bdddf27a1d9af17bf8581356b2b35.tar.gz pardes-fd448801b83bdddf27a1d9af17bf8581356b2b35.zip | |
Del and Delcol refuse unsaved text once, as acme's do
acme's Del asks winclean first and Delcol colclean (exec.c del, delcol):
unsaved text is warned about, and the same word again closes. pardes closed
at once. Both now refuse once through the one-warning-per-word mechanism
Exit uses, from keys, tags, exec and ctl alike. A pane dirty only by a
rename, or an empty one that never held a file, has no text to lose and is
not asked about, and a scratch or a command's output under 100 bytes is not
either, as acme's winclean passes a small unnamed window.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/panes.zig')
| -rw-r--r-- | src/panes.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panes.zig b/src/panes.zig index 8ca2bb4d..c33fd577 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, get }; + pub const Discarding = enum { Exit, Restore, get, Del, Delcol }; /// One mouse sweep, per button: the press (c0, r0) and where it is now /// (c1, r1), a stream between them as acme's (edit.sweepCols). c/r are |
