mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
__fish_complete_suffix: don't fail when a part of the suffix is present
Resolves #7233
This commit is contained in:
parent
7a77907b62
commit
ac1f63781d
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,8 @@ function __fish_complete_suffix -d "Complete using files"
|
|||
|
||||
# Also do directory completion, since there might be files with the correct
|
||||
# suffix in a subdirectory.
|
||||
set all $base*$suff
|
||||
set all $base*
|
||||
set all (string match -r -- ".*"(string escape --style=regex -- $suff) $all)
|
||||
if not string match -qr '/$' -- $suff
|
||||
set dirs $base*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue