diff options
| author | sigoden <sigoden@gmail.com> | 2024-08-01 15:01:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-01 15:01:34 +0800 |
| commit | 4a04465a3fd7703dbf063c41cc9b758ee4bb430f (patch) | |
| tree | 8d8882668f67f6b4f0a59cd6218fb425f345a7a4 /src/repl | |
| parent | 6aa541912babb6e41d25d5daf8efbe333bc5e6b4 (diff) | |
| download | aichat-4a04465a3fd7703dbf063c41cc9b758ee4bb430f.tar.gz | |
feat: rename `config.buffer_editor` to `config.editor` (#773)
Diffstat (limited to 'src/repl')
| -rw-r--r-- | src/repl/mod.rs | 2 |
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); |
