mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Revert "Switch to bare vars in our math invocations"
This reverts commit bd18736ee5.
Bare variables should only be used in commands that must
manipulate the variable stack, such as `set`.
This commit is contained in:
@@ -15,7 +15,7 @@ function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowin
|
||||
for i in $cmd
|
||||
|
||||
if test $skip_next -gt 0
|
||||
set skip_next (math skip_next - 1)
|
||||
set skip_next (math $skip_next - 1)
|
||||
continue
|
||||
end
|
||||
|
||||
@@ -24,7 +24,7 @@ function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowin
|
||||
else
|
||||
|
||||
if contains -- $i $argv
|
||||
set skip_next (math skip_next + 1)
|
||||
set skip_next (math $skip_next + 1)
|
||||
continue
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user