diff options
Diffstat (limited to 'core/exec.zig')
| -rw-r--r-- | core/exec.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/exec.zig b/core/exec.zig index 47fea012..c1e68970 100644 --- a/core/exec.zig +++ b/core/exec.zig @@ -983,6 +983,13 @@ pub fn runBuiltinFrom(p: *Pardes, b: Builtin, id: usize, txt: []const u8, arg: ? var said: pardes.Kind.Buf(96) = .{}; return p.reportFailure(id, said.print("{s} is GUI-only, invalid here", .{@tagName(b)})); } + // A word that changes or closes the pane a picker asks from or + // previews in ends the picker first, as Esc does (UX DESIGN O3); then + // it runs as at rest (on nothing, the pane made for the picker gone). + switch (b) { + .Get, .Undo, .Redo, .Save, .Del, .Keep => pardes.Pick.yieldFor(p, id), + else => {}, + } // No pane at all (the window Delcol emptied): a word runs all the same, // with a stand-in that is no pane (New, Newcol, Exit are what make sense). const pane = p.panes[id] orelse (if (builtins.registry.scope(b) == .session or panes.anyPane(p) == null) panes.standIn(p) orelse return else return); |
