aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-08-30 03:27:04 +0000
committerBlaž Hrastnik2022-08-30 03:27:04 +0000
commite77b7d147cd03c4e7d7835993317150428b083ca (patch)
treeea1d2781b5fb7ad12131a604cb1d127e405382d9 /helix-term
parent8a4fbf6daf980b08de83e936c4a2b4bf8beaa2d4 (diff)
fix: Recalculate completion after pasting into prompt
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/ui/prompt.rs1
1 files changed, 1 insertions, 0 deletions
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,