summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-11-27 14:20:02 +0800
committerGitHub <noreply@github.com>2023-11-27 14:20:02 +0800
commit25e545474fcbd69dfb2a283981178491717cc6b5 (patch)
tree636b2fcb981719d616e083b2a7d7d8ba9e59996c /src
parent35c75506e2fd94e2285d8a3cb66208d518d5f992 (diff)
downloadaichat-25e545474fcbd69dfb2a283981178491717cc6b5.tar.gz
chore: upgrade deps (#250)
Diffstat (limited to 'src')
-rw-r--r--src/repl/mod.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index b8580c5..7cdb4a7 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -264,18 +264,17 @@ Type ".help" for more information.
let highlighter = ReplHighlighter::new(config);
let menu = Self::create_menu();
let edit_mode = Self::create_edit_mode(config);
- let mut editor = Reedline::create()
+ let editor = Reedline::create()
.with_completer(Box::new(completer))
.with_highlighter(Box::new(highlighter))
.with_menu(menu)
.with_edit_mode(edit_mode)
.with_quick_completions(true)
.with_partial_completions(true)
+ .use_bracketed_paste(true)
.with_validator(Box::new(ReplValidator))
.with_ansi_colors(true);
- editor.enable_bracketed_paste()?;
-
Ok(editor)
}