Skip to content

Commit

Permalink
fix: Recalculate completion after pasting into prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Aug 30, 2022
1 parent 8a4fbf6 commit e77b7d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helix-term/src/ui/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e77b7d1

Please sign in to comment.