diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-26 22:45:24 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:07 -0300 |
| commit | fc3b5633cb00f2c0495b940c3f1fb07000502819 (patch) | |
| tree | ad3048abb72f3bbf2e810894d161b155f7958a5b /src/pardes.zig | |
| parent | 830aa98067d1c3f0a88bfbcae0ef9acfdc6b3ff0 (diff) | |
| download | pardes-fc3b5633cb00f2c0495b940c3f1fb07000502819.tar.gz pardes-fc3b5633cb00f2c0495b940c3f1fb07000502819.zip | |
Esc in an output pane's body runs Del: +Search/+Help dismiss themselves
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index c88687d0..89f295cc 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -2005,8 +2005,11 @@ pub const Pardes = struct { // Esc: exit select mode / drop pending prefixes + count. The // selection itself SURVIVES (helix; `;` collapses it) — motions - // replace it anyway. + // replace it anyway. On an OUTPUT BUFFER (+Search, +Help) there is no + // file behind the pane and nothing worth keeping, so "never mind" + // means dismiss it: Esc IS Del, the same builtin its tag offers. if (is(key, Key.escape)) { + if (pane.file) |f| if (f.output) return p.runBuiltin(.Del, p.active, ""); pane.select = false; pane.pending = 0; pane.pending2 = 0; |
