Skip to content

Commit

Permalink
Remove some useless uses of no-scope-shadowing
Browse files Browse the repository at this point in the history
This is a very delicate tool, and these completions simply don't need them.
  • Loading branch information
faho committed Dec 16, 2020
1 parent 39263fc commit 75dcbed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/completions/apt.fish
Expand Up @@ -5,7 +5,7 @@ set -l pkg_subcmds install upgrade full-upgrade show search purge changelog poli
set -l installed_pkg_subcmds remove
set -l handle_file_pkg_subcmds install

function __fish_apt_subcommand --no-scope-shadowing
function __fish_apt_subcommand -V all_subcmds
set -l subcommand $argv[1]
set -e argv[1]
complete -f -c apt -n "not __fish_seen_subcommand_from $all_subcmds" -a $subcommand $argv
Expand Down
2 changes: 1 addition & 1 deletion share/completions/svn.fish
Expand Up @@ -24,7 +24,7 @@ function __fish_complete_svn_diff --description 'Complete "svn diff" arguments'

end

function _svn_cmpl_ -d 'Make a completion for a subcommand' --no-scope-shadowing --argument-names subcommand
function _svn_cmpl_ -d 'Make a completion for a subcommand' --argument-names subcommand
set -e argv[1]
complete -c svn -n "__fish_seen_subcommand_from $subcommand" $argv
end
Expand Down

0 comments on commit 75dcbed

Please sign in to comment.