Fixed autocomplete for the case where search string gives nothing on a file search
This commit is contained in:
@ -189,8 +189,7 @@ fn autocomplete_file(search: &Search) -> std::io::Result<(String, String)> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if nbr_found == 0 {
|
if nbr_found == 0 {
|
||||||
let ret_val = format!("{}{}", &search.command, &search.searchee);
|
*&mut last_found = search.searchee.clone();
|
||||||
return Ok((ret_val, String::new()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Handle the path when tabbing in a long path, zsh-like
|
//Handle the path when tabbing in a long path, zsh-like
|
||||||
|
Reference in New Issue
Block a user