aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_complete_subcommand.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-03 23:23:59 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-03 23:23:59 +0100
commit158ea98189f6c5c410ea8b58f466a5ef6a8f1a33 (patch)
tree706beb417907de7154c2d6783aaed3519c6d10a0 /share/functions/__fish_complete_subcommand.fish
parent962f9914c61f6ab0e744009cafa56d072bbfc8a6 (diff)
Replace uses of expr with math/string
Diffstat (limited to 'share/functions/__fish_complete_subcommand.fish')
-rw-r--r--share/functions/__fish_complete_subcommand.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/__fish_complete_subcommand.fish b/share/functions/__fish_complete_subcommand.fish
index 203deb05..244d1a23 100644
--- a/share/functions/__fish_complete_subcommand.fish
+++ b/share/functions/__fish_complete_subcommand.fish
@@ -15,7 +15,7 @@ function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowi
for i in $cmd
if test $skip_next -gt 0
- set skip_next (expr $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-shadowi
else
if contains -- $i $argv
- set skip_next (expr $skip_next + 1)
+ set skip_next (math $skip_next + 1)
continue
end