mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-24 17:02:11 +08: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:
parent
6c4d658c15
commit
4ae3c487a6
@ -6342,7 +6342,7 @@ impl<'a> Reader<'a> {
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user