Fix Prompt::handle_event compilation

pull/3243/head
Michael Davis 2 years ago
parent 4c9f144dac
commit 7c34f20dca
No known key found for this signature in database

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

Loading…
Cancel
Save