summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/mod.rs2
1 files changed, 1 insertions, 1 deletions
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<dyn EditMode> {
- let edit_mode: Box<dyn EditMode> = if config.read().keybindings.is_vi() {
+ let edit_mode: Box<dyn EditMode> = 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);