diff --git a/share/functions/__fish_seen_argument.fish b/share/functions/__fish_seen_argument.fish index dd9a6dd2b..20fed3279 100644 --- a/share/functions/__fish_seen_argument.fish +++ b/share/functions/__fish_seen_argument.fish @@ -11,7 +11,7 @@ function __fish_seen_argument end for l in $_flag_l - if string match -q "--$l" -- $t + if string match -q -- "--$l" $t return 0 end end