From 4a04465a3fd7703dbf063c41cc9b758ee4bb430f Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 1 Aug 2024 15:01:34 +0800 Subject: feat: rename `config.buffer_editor` to `config.editor` (#773) --- src/repl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl/mod.rs') 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); -- cgit v1.2.3