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 authored and jdrst committed Sep 13, 2022
1 parent 7bbd3ee commit e1736e1
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 e1736e1

Please sign in to comment.