From 065a32decb3d58004256cb8d99b1b41a1d57446a Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 4 May 2023 15:43:34 +0800 Subject: feat: support backeted paste (#117) --- src/repl/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/repl/mod.rs') diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 663decb..facb115 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -98,8 +98,10 @@ impl Repl { ".clear" => match args { Some("screen") => term::clear_screen(0)?, Some("history") => { - let history = Box::new(self.editor.history_mut()); - history.clear().with_context(|| "Failed to clear history")?; + self.editor + .history_mut() + .clear() + .with_context(|| "Failed to clear history")?; print_now!("\n"); } Some("role") => handler.handle(ReplCmd::ClearRole)?, -- cgit v1.2.3