diff options
Diffstat (limited to 'src/key_state.zig')
| -rw-r--r-- | src/key_state.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/key_state.zig b/src/key_state.zig index 19177cf..49adbf8 100644 --- a/src/key_state.zig +++ b/src/key_state.zig | |||
| @@ -16,7 +16,7 @@ pub const Error = error{ | |||
| 16 | std.fs.File.ReadError || | 16 | std.fs.File.ReadError || |
| 17 | std.fs.File.WriteError || | 17 | std.fs.File.WriteError || |
| 18 | std.os.SchedYieldError; | 18 | std.os.SchedYieldError; |
| 19 | pub const KeyState = fn(*Editor, *Buffer, Key) Error!void; | 19 | pub const KeyState = fn (*Editor, *Buffer, Key) Error!void; |
| 20 | 20 | ||
| 21 | pub fn mgState(editor: *Editor, buf: *Buffer, key: Key) Error!void { | 21 | pub fn mgState(editor: *Editor, buf: *Buffer, key: Key) Error!void { |
| 22 | editor.current_state = defaultState; | 22 | editor.current_state = defaultState; |