mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Remove __fish_seen_argument_from
Despite its somewhat misleading name, `__fish_seen_argument` can already handle multiple arguments in one go and doesn't need a wrapper function!
This commit is contained in:
parent
77941ea823
commit
072dbfd6ed
2 changed files with 1 additions and 9 deletions
|
@ -2292,7 +2292,7 @@ complete -f -c git -n '__fish_git_using_command for-each-ref' -l count -d "Limit
|
||||||
set -l for_each_ref_interpreters shell perl python tcl
|
set -l for_each_ref_interpreters shell perl python tcl
|
||||||
for intr in $for_each_ref_interpreters
|
for intr in $for_each_ref_interpreters
|
||||||
complete -f -c git -n '__fish_git_using_command for-each-ref' \
|
complete -f -c git -n '__fish_git_using_command for-each-ref' \
|
||||||
-n "not __fish_seen_argument_from --$for_each_ref_interpreters" \
|
-n "not __fish_seen_argument --$for_each_ref_interpreters" \
|
||||||
-l $intr -d "%(fieldname) placeholders are $intr scripts"
|
-l $intr -d "%(fieldname) placeholders are $intr scripts"
|
||||||
end
|
end
|
||||||
complete -f -c git -n '__fish_git_using_command for-each-ref' -x -l format -d "Format string with %(fieldname) placeholders"
|
complete -f -c git -n '__fish_git_using_command for-each-ref' -x -l format -d "Format string with %(fieldname) placeholders"
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
function __fish_seen_argument_from
|
|
||||||
for arg in $argv
|
|
||||||
if __fish_seen_argument -- $arg
|
|
||||||
return 0
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return 1
|
|
||||||
end
|
|
Loading…
Reference in a new issue