From 5aac064b2c761860deb5e6f38ad2a308c66ba49a Mon Sep 17 00:00:00 2001 From: EmilySeville7cfg Date: Thu, 25 Nov 2021 22:29:52 +1000 Subject: [PATCH] Fix second for loop in __fish_seen_argument --- share/functions/__fish_seen_argument.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_seen_argument.fish b/share/functions/__fish_seen_argument.fish index 6425faa5c..2ec21a802 100644 --- a/share/functions/__fish_seen_argument.fish +++ b/share/functions/__fish_seen_argument.fish @@ -12,7 +12,7 @@ function __fish_seen_argument --description 'Check whether argument is used' end for o in $_flag_o - if string match --quiet -- "-$s" $t + if string match --quiet -- "-$o" $t return 0 end end