fix: Recalculate completion after pasting into prompt

This commit is contained in:
Blaž Hrastnik 2022-08-30 12:27:04 +09:00
parent 8a4fbf6daf
commit e77b7d147c
No known key found for this signature in database
GPG key ID: 1238B9C4AD889640

View file

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