diff options
author | Nathan Vegdahl | 2021-07-24 00:23:16 +0000 |
---|---|---|
committer | Nathan Vegdahl | 2021-07-24 00:23:16 +0000 |
commit | 43594049ddd6b0ec3794807016ab3cd2a6a38834 (patch) | |
tree | 56e0bd5b7ac016937612aa650de2f06041a2e258 /helix-term/src/ui/prompt.rs | |
parent | 427ae6ac6cfdd2a89580692dadd45f1a8dc02d2c (diff) | |
parent | bda4f5c1cdd2f84a06647f7dce45a8f6d06401ae (diff) |
Merge branch 'master' into great_line_ending_and_cursor_range_cleanup
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
-rw-r--r-- | helix-term/src/ui/prompt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index a4cb26f7..2df1e281 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -463,7 +463,7 @@ impl Component for Prompt { code: KeyCode::Enter, .. } => { - if self.line.ends_with('/') { + if self.selection.is_some() && self.line.ends_with('/') { self.completion = (self.completion_fn)(&self.line); self.exit_selection(); } else { |