fix: Recalculate completion after pasting into prompt

pull/3609/head
Blaž Hrastnik 2 years ago
parent 8a4fbf6daf
commit e77b7d147c
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

@ -470,6 +470,7 @@ impl Component for Prompt {
let event = match event { let event = match event {
Event::Paste(data) => { Event::Paste(data) => {
self.insert_str(data); self.insert_str(data);
self.recalculate_completion(cx.editor);
return EventResult::Consumed(None); return EventResult::Consumed(None);
} }
Event::Key(event) => *event, Event::Key(event) => *event,

Loading…
Cancel
Save