diff options
Diffstat (limited to 'core/keys.zig')
| -rw-r--r-- | core/keys.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/keys.zig b/core/keys.zig index 5baed695..05349d59 100644 --- a/core/keys.zig +++ b/core/keys.zig @@ -232,6 +232,7 @@ pub fn handleKey(p: *Pardes, key: Key) void { // A tag in a typing state takes every key (TagState: Help, describe-key). if (p.view().tag_state.kind != .rest) return tagStateKey(p, key); Prompt.keyAtRest(p, key); + @import("Pick.zig").keyAtRest(p, key); // Esc takes a hover's ghost lines away (SPEC ยง3.5) before anything else // it does. if (p.lsp_ask.hover != null and hit(key, config.escape)) { @@ -585,6 +586,7 @@ fn tagStateKey(p: *Pardes, key: Key) void { const v = p.view(); const s = &v.tag_state; if (s.kind == .prompt) return Prompt.key(p, key); + if (s.kind == .pick and hit(key, config.escape) and @import("Pick.zig").closeHistory(p)) return; if (TagState.hostOf(p) == null or hit(key, config.escape)) return TagState.toRest(p); switch (s.kind) { .rest, .prompt => unreachable, |
