mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Fix missing --
in string match in __fish_complete_suffix
Caused completion to fail when current token begins with -
This commit is contained in:
parent
1b3154e50e
commit
6401906288
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ function __fish_complete_suffix -d "Complete using files"
|
|||
# Another problem is that expanded paths are not matched, either.
|
||||
# So an expression like $HOME/foo*.zip will expand to /home/rdahl/foo-bar.zip
|
||||
# but that no longer matches the expression at the command line.
|
||||
if string match -qr '[${}*~]' $comp
|
||||
if string match -qr '[${}*~]' -- $comp
|
||||
set -l expanded
|
||||
eval "set expanded $comp"
|
||||
set files (string replace -- $expanded $comp $files)
|
||||
|
|
Loading…
Reference in a new issue