From 7c34f20dcadfa79d628da1e3fff0d1b999fa3435 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 31 Aug 2022 11:37:14 -0500 Subject: [PATCH] Fix Prompt::handle_event compilation --- helix-term/src/ui/prompt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 55091a543..1b2c35e9a 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -472,7 +472,7 @@ impl Component for Prompt { fn handle_event(&mut self, event: &Event, cx: &mut Context) -> EventResult { let event = match event { Event::Paste(data) => { - self.insert_str(data); + self.insert_str(data, cx.editor); self.recalculate_completion(cx.editor); return EventResult::Consumed(None); }