summaryrefslogtreecommitdiff
path: root/src/key_state.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2022-01-02 00:17:47 +0200
committerGravatar Uko Kokņevičs2022-01-02 00:17:47 +0200
commitbd3101517b7b2d0d81f2014eb3c2613e82b25def (patch)
tree72cffbbcdc2be0f22987e1a4cb20892fbc3db052 /src/key_state.zig
parentchanges (diff)
downloades-bd3101517b7b2d0d81f2014eb3c2613e82b25def.tar.gz
es-bd3101517b7b2d0d81f2014eb3c2613e82b25def.tar.xz
es-bd3101517b7b2d0d81f2014eb3c2613e82b25def.zip
hierarchy changes
Diffstat (limited to 'src/key_state.zig')
-rw-r--r--src/key_state.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/key_state.zig b/src/key_state.zig
index f1880ae..ce20071 100644
--- a/src/key_state.zig
+++ b/src/key_state.zig
@@ -1,9 +1,9 @@
1const es = @import("root");
1const std = @import("std"); 2const std = @import("std");
2 3
3const Buffer = @import("Buffer.zig"); 4const Buffer = es.Buffer;
4const Editor = @import("Editor.zig"); 5const Editor = es.Editor;
5const Key = @import("key.zig").Key; 6const Key = es.Key;
6const search = @import("search.zig").search;
7 7
8pub const Error = error{ 8pub const Error = error{
9 MalformedConfig, 9 MalformedConfig,
@@ -93,7 +93,7 @@ pub fn defaultState(editor: *Editor, buf: *Buffer, key: Key) Error!void {
93 Key.ctrl('m') => try buf.insertNewline(), 93 Key.ctrl('m') => try buf.insertNewline(),
94 Key.ctrl('n'), Key.down => buf.nextLine(), 94 Key.ctrl('n'), Key.down => buf.nextLine(),
95 Key.ctrl('p'), Key.up => buf.previousLine(), 95 Key.ctrl('p'), Key.up => buf.previousLine(),
96 Key.ctrl('s') => try search(editor, buf), 96 Key.ctrl('s') => try es.search(editor, buf),
97 97
98 // TODO: C-q quotedInsert 98 // TODO: C-q quotedInsert
99 99