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); }