From fc3b5633cb00f2c0495b940c3f1fb07000502819 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 26 Jul 2026 22:45:24 -0300 Subject: Esc in an output pane's body runs Del: +Search/+Help dismiss themselves --- src/pardes.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.3