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:
Fabian Boehm 2025-01-30 16:24:35 +01:00
parent 6c4d658c15
commit 4ae3c487a6

View File

@ -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.