summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-10-27 21:22:24 +0800
committerGitHub <noreply@github.com>2023-10-27 21:22:24 +0800
commitaa43612d91687634b3e6a317e714e6eccb62b88a (patch)
tree8b53fdfac5602ce0e2175ba3f37a27d1f5363d42 /src/repl
parent5ce2b9cd8f5756a884ce39fe33e1caafc560092f (diff)
downloadaichat-aa43612d91687634b3e6a317e714e6eccb62b88a.tar.gz
feat: change config.vi_keybindings to config.keybindings (#158)
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/init.rs2
1 files changed, 1 insertions, 1 deletions
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<dyn EditMode> = if config.read().vi_keybindings {
+ let edit_mode: Box<dyn EditMode> = 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);