summaryrefslogtreecommitdiff
path: root/src/keys.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/keys.zig')
-rw-r--r--src/keys.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keys.zig b/src/keys.zig
index 003f39b5..d9925838 100644
--- a/src/keys.zig
+++ b/src/keys.zig
@@ -229,7 +229,7 @@ pub fn handleKey(p: *Pardes, key: Key) void {
}
// A kind's pane that takes keys takes them all, as a raw terminal
// does, but Esc, which leaves (and Shift-Esc, above).
- if (header == null and pane.focus == .body and pane.prompt == .none) if (pane.addon) |slot| if (slot.takesKeys()) {
+ if (header == null and pane.focus == .body and pane.prompt == .none) if (pane.addon) |slot| if (pardes.Kind.takesKeys(p, slot)) {
p.prefix = .none;
if (key.cp == Key.escape and !key.ctrl and !key.alt) return exec.runBuiltin(p, .Last, p.active, "", null);
if (pardes.Kind.key(p, p.active, key)) return;
@@ -473,8 +473,8 @@ fn leaderKey(p: *Pardes, key: Key) void {
}
}
// An addon's word, after the core's (a path the core has is no addon's).
- switch (pardes.Kind.leader(pfx)) {
- .word => |w| pardes.Kind.runWord(p, p.active, w, std.mem.span(w.w.name), ""),
+ switch (p.kinds.leader(pfx)) {
+ .word => |w| exec.runWord(p, p.active, w, w.name.slice(), ""),
.prefix => p.prefix = .leader,
.none => {},
}