From e77b7d147cd03c4e7d7835993317150428b083ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Tue, 30 Aug 2022 12:27:04 +0900 Subject: [PATCH] fix: Recalculate completion after pasting into prompt --- helix-term/src/ui/prompt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 5e8cd1f5c..1ac833901 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -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,