From 9030f3b27bc93fe25ee5457579c715f8c1c0cd91 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 27 Jul 2024 14:52:13 +0800 Subject: feat: all config fields have related environment variables (#751) --- src/repl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl/mod.rs') diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 5c48b1b..3cfd7de 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -479,7 +479,7 @@ Type ".help" for additional help. } fn create_edit_mode(config: &GlobalConfig) -> Box { - let edit_mode: Box = if config.read().keybindings.is_vi() { + let edit_mode: Box = if config.read().keybindings == "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