__fish_seen_subcommand_from: don't clobber global variable

This commit is contained in:
Johannes Altmanninger 2024-07-20 13:09:59 +02:00
parent 6feec60a8e
commit 4e0cb5d3e9

View file

@ -5,6 +5,6 @@
#
function __fish_seen_subcommand_from
set regex (string escape --style=regex -- (commandline -pxc)[2..] | string join '|')
set -l regex (string escape --style=regex -- (commandline -pxc)[2..] | string join '|')
string match -rq -- '^'$regex'$' $argv
end