mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-18 21:17:08 +04:00
fix: Only try expanding directory completion if it makes sense
Fixes #487
This commit is contained in:
parent
58d08d36ae
commit
817a7e0bd6
@ -463,7 +463,7 @@ fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user