summaryrefslogtreecommitdiff
path: root/core/keys.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/keys.zig')
-rw-r--r--core/keys.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/keys.zig b/core/keys.zig
index ea25c2f7..803b2b3c 100644
--- a/core/keys.zig
+++ b/core/keys.zig
@@ -586,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,