From 2e2c9fdcc7118f69f39310c909fc858ae6743c7a Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Tue, 28 Dec 2021 22:42:29 +0200 Subject: Add `C-x b` as a buffer switching shortcut --- src/key_state.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key_state.zig b/src/key_state.zig index 49adbf8..a1dbdbe 100644 --- a/src/key_state.zig +++ b/src/key_state.zig @@ -36,7 +36,7 @@ pub fn cxState(editor: *Editor, buf: *Buffer, key: Key) Error!void { switch (key) { // ========== C-<*> ========== - Key.ctrl('b') => try editor.switchBuffer(), + Key.ctrl('b'), Key.char('b') => try editor.switchBuffer(), Key.ctrl('c') => try editor.saveBuffersExit(), Key.ctrl('f') => try editor.openFile(), Key.ctrl('g') => {}, -- cgit v1.2.3