summaryrefslogtreecommitdiff
path: root/src/key_state.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/key_state.zig')
-rw-r--r--src/key_state.zig11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/key_state.zig b/src/key_state.zig
index a1dbdbe..0ea30cb 100644
--- a/src/key_state.zig
+++ b/src/key_state.zig
@@ -26,7 +26,10 @@ pub fn mgState(editor: *Editor, buf: *Buffer, key: Key) Error!void {
26 // ========== <*> ========== 26 // ========== <*> ==========
27 Key.char('g') => try buf.goToLine(editor), 27 Key.char('g') => try buf.goToLine(editor),
28 28
29 else => try editor.setStatusMessage("Unknown chord: M-g {}", .{key}), 29 else => {
30 std.log.debug("Unknown chord: M-g {}", .{key});
31 try editor.setStatusMessage("Unknown chord: M-g {}", .{key});
32 },
30 } 33 }
31} 34}
32 35
@@ -45,7 +48,10 @@ pub fn cxState(editor: *Editor, buf: *Buffer, key: Key) Error!void {
45 // ========== <*> ========== 48 // ========== <*> ==========
46 Key.char('k') => _ = try editor.killCurrentBuffer(), 49 Key.char('k') => _ = try editor.killCurrentBuffer(),
47 50
48 else => try editor.setStatusMessage("Unknown chord: C-x {}", .{key}), 51 else => {
52 std.log.debug("Unknown chord: C-x {}", .{key});
53 try editor.setStatusMessage("Unknown chord: C-x {}", .{key});
54 },
49 } 55 }
50} 56}
51 57
@@ -105,6 +111,7 @@ pub fn defaultState(editor: *Editor, buf: *Buffer, key: Key) Error!void {
105 } 111 }
106 } 112 }
107 113
114 std.log.debug("Unknown key: {}", .{key});
108 try editor.setStatusMessage("Unknown key: {}", .{key}); 115 try editor.setStatusMessage("Unknown key: {}", .{key});
109 }, 116 },
110 } 117 }