From aa43612d91687634b3e6a317e714e6eccb62b88a Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 27 Oct 2023 21:22:24 +0800 Subject: feat: change config.vi_keybindings to config.keybindings (#158) --- src/repl/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl/init.rs') diff --git a/src/repl/init.rs b/src/repl/init.rs index 9cef4e5..60fce00 100644 --- a/src/repl/init.rs +++ b/src/repl/init.rs @@ -29,7 +29,7 @@ impl Repl { let highlighter = ReplHighlighter::new(config.clone(), commands); let history = Self::create_history()?; let menu = Self::create_menu(); - let edit_mode: Box = if config.read().vi_keybindings { + let edit_mode: Box = if config.read().keybindings.is_vi() { let mut normal_keybindings = default_vi_normal_keybindings(); let mut insert_keybindings = default_vi_insert_keybindings(); Self::extra_keybindings(&mut normal_keybindings); -- cgit v1.2.3