Fix Prompt::handle_event compilation

This commit is contained in:
Michael Davis 2022-08-31 11:37:14 -05:00
parent 4c9f144dac
commit 7c34f20dca
No known key found for this signature in database

View File

@ -472,7 +472,7 @@ impl Component for Prompt {
fn handle_event(&mut self, event: &Event, cx: &mut Context) -> EventResult { fn handle_event(&mut self, event: &Event, cx: &mut Context) -> EventResult {
let event = match event { let event = match event {
Event::Paste(data) => { Event::Paste(data) => {
self.insert_str(data); self.insert_str(data, cx.editor);
self.recalculate_completion(cx.editor); self.recalculate_completion(cx.editor);
return EventResult::Consumed(None); return EventResult::Consumed(None);
} }