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.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/key_state.zig b/src/key_state.zig
index 2cb9988..818dded 100644
--- a/src/key_state.zig
+++ b/src/key_state.zig
@@ -96,7 +96,7 @@ pub fn defaultState(editor: *Editor, buf: *Buffer, key: Key) Error!void {
96 // TODO: C-h help 96 // TODO: C-h help
97 97
98 // tab 98 // tab
99 Key.ctrl('i') => try buf.insertTab(), 99 Key.ctrl('i') => try buf.indent(),
100 // line feed 100 // line feed
101 Key.ctrl('j') => try buf.insertNewline(), 101 Key.ctrl('j') => try buf.insertNewline(),
102 Key.ctrl('k') => try buf.killLine(), 102 Key.ctrl('k') => try buf.killLine(),
@@ -122,6 +122,8 @@ pub fn defaultState(editor: *Editor, buf: *Buffer, key: Key) Error!void {
122 }, 122 },
123 123
124 // ========== <*> ========== 124 // ========== <*> ==========
125 Key.untab => try buf.unindent(),
126
125 else => { 127 else => {
126 if (@enumToInt(key) <= @enumToInt(Key.max_char)) { 128 if (@enumToInt(key) <= @enumToInt(Key.max_char)) {
127 const char = @intCast(u8, @enumToInt(key)); 129 const char = @intCast(u8, @enumToInt(key));