mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 00:47:30 +00:00
__fish_seen_subcommand_from: don't clobber global variable
This commit is contained in:
parent
6feec60a8e
commit
4e0cb5d3e9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue