mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-12 06:41:14 -03:00
reader: flash entire commandline if there's no completion
This is often the case if the token is empty, e.g `git add <TAB>` outside of a git repo.
This commit is contained in:
@@ -6342,7 +6342,7 @@ fn handle_completions(&mut self, token_range: Range<usize>) -> bool {
|
||||
let len = comp.len();
|
||||
if len == 0 {
|
||||
// No suitable completions found, flash screen and return.
|
||||
self.flash(token_range);
|
||||
self.flash(0..self.command_line.len());
|
||||
return false;
|
||||
} else if len == 1 {
|
||||
// Exactly one suitable completion found - insert it.
|
||||
|
||||
Reference in New Issue
Block a user