summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-08-01 15:01:34 +0800
committerGitHub <noreply@github.com>2024-08-01 15:01:34 +0800
commit4a04465a3fd7703dbf063c41cc9b758ee4bb430f (patch)
tree8d8882668f67f6b4f0a59cd6218fb425f345a7a4 /src/repl/mod.rs
parent6aa541912babb6e41d25d5daf8efbe333bc5e6b4 (diff)
downloadaichat-4a04465a3fd7703dbf063c41cc9b758ee4bb430f.tar.gz
feat: rename `config.buffer_editor` to `config.editor` (#773)
Diffstat (limited to 'src/repl/mod.rs')
-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 18d00f9..490cc89 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -435,7 +435,7 @@ Type ".help" for additional help.
.with_validator(Box::new(ReplValidator))
.with_ansi_colors(true);
- if let Some(cmd) = config.read().buffer_editor() {
+ if let Ok(cmd) = config.read().editor() {
let temp_file = temp_file("-repl-", ".txt");
let command = process::Command::new(cmd);
editor = editor.with_buffer_editor(command, temp_file);