summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-27 14:52:13 +0800
committerGitHub <noreply@github.com>2024-07-27 14:52:13 +0800
commit9030f3b27bc93fe25ee5457579c715f8c1c0cd91 (patch)
treebc6f2ad44de856f053699e6dff169e3303bd5624 /src/repl
parentd0208937633cbf255471269e079c10e862cc4e39 (diff)
downloadaichat-9030f3b27bc93fe25ee5457579c715f8c1c0cd91.tar.gz
feat: all config fields have related environment variables (#751)
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);