Fix __fish_seen_argument

Fixes #8478
This commit is contained in:
Fabian Homborg 2021-11-23 18:12:38 +01:00
parent 566a673e4f
commit c71a2e573f

View file

@ -5,7 +5,7 @@ function __fish_seen_argument --description 'Check whether argument used'
set -e cmd[1]
for t in $cmd
for s in $_flag_s
if string match -qr "^-[A-z0-9]*$s[A-z0-9]*\$" -- $t
if string match -qr "^-[A-z0-9]*"$s"[A-z0-9]*\$" -- $t
return 0
end
end