diff options
author | Grissiom <chaos.proton@gmail.com> | 2010-09-18 10:18:26 +0800 |
---|---|---|
committer | Grissiom <chaos.proton@gmail.com> | 2010-09-18 10:18:26 +0800 |
commit | 70322077d21ae38bbe503d88e9e4d73ec883a493 (patch) | |
tree | d64024c9dde752818a35f865f910e413d8935579 /share/functions/__fish_not_contain_opt.fish | |
parent | f529b2e05725cba0bf9da3ee0feb0b7e3ef2fa5a (diff) |
remove trialing spaces #2
Diffstat (limited to 'share/functions/__fish_not_contain_opt.fish')
-rw-r--r-- | share/functions/__fish_not_contain_opt.fish | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/functions/__fish_not_contain_opt.fish b/share/functions/__fish_not_contain_opt.fish index 0a7e0f56..8320607f 100644 --- a/share/functions/__fish_not_contain_opt.fish +++ b/share/functions/__fish_not_contain_opt.fish @@ -1,12 +1,12 @@ function __fish_not_contain_opt -d "Checks that a specific option is not in the current commandline" - set -l next_short + set -l next_short set -l short_opt - set -l long_opt + set -l long_opt for i in $argv - if test $next_short - set next_short + if test $next_short + set next_short set short_opt $short_opt $i else switch $i @@ -31,7 +31,7 @@ function __fish_not_contain_opt -d "Checks that a specific option is not in the if commandline -cpo | sgrep -- "^-"$i"\|^-[^-]*"$i >/dev/null return 1 end - + if commandline -ct | sgrep -- "^-"$i"\|^-[^-]*"$i >/dev/null return 1 end |