From e77b7d147cd03c4e7d7835993317150428b083ca Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 30 Aug 2022 12:27:04 +0900 Subject: fix: Recalculate completion after pasting into prompt --- helix-term/src/ui/prompt.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-term') diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 5e8cd1f5..1ac83390 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, -- cgit v1.2.3-70-g09d2