File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 112025-10-23 Oliver Kiddle <
[email protected] >
22
3+ * Kevin Cox: github #147: Completion/Unix/Command/_git,
4+ Completion/Unix/Command/_ssh, Completion/Unix/Type/_hosts:
5+ Clean up some leaked variables in completion functions
6+
37 * 53999: Src/module.c: remove further remnants of ansi2knr
48 support from AIX specific code
59
Original file line number Diff line number Diff line change @@ -7181,7 +7181,7 @@ __git_remote_branch_names () {
71817181__git_remote_branch_names_noprefix () {
71827182 declare -a heads
71837183
7184- branch_names=(${${${${(f)"$(_call_program remote-branch-refs-noprefix git for-each-ref --format='"%(refname)"' refs/remotes 2>/dev/null)"}#refs/remotes/}#*/}:#HEAD})
7184+ local branch_names=(${${${${(f)"$(_call_program remote-branch-refs-noprefix git for-each-ref --format='"%(refname)"' refs/remotes 2>/dev/null)"}#refs/remotes/}#*/}:#HEAD})
71857185 __git_command_successful $pipestatus || return 1
71867186
71877187 __git_describe_commit branch_names remote-branch-names-noprefix 'remote branch name' "$@"
Original file line number Diff line number Diff line change 33# TODO: sshd, ssh-keysign
44
55_ssh () {
6- local curcontext="$curcontext" state line expl suf arg ret=1
6+ local curcontext="$curcontext" state line lstate expl suf arg ret=1
77 local args sigargs common common_transfer options algopt tmp p1 file cmn cmds sdesc tdesc
88 typeset -A opt_args tsizes
99
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if ! zstyle -a ":completion:${curcontext}:hosts" hosts _hosts; then
4141
4242 for khostfile in $khostfiles; do
4343 if [[ -r $khostfile ]]; then
44- khosts=(${(s/,/j/,/u)${(f)"$(<$khostfile)"}%%[ |#]*})
44+ local khosts=(${(s/,/j/,/u)${(f)"$(<$khostfile)"}%%[ |#]*})
4545
4646 # known_hosts syntax supports the host being in the form [hostname]:port
4747 # The filter below extracts the hostname from lines using this format.
You can’t perform that action at this time.
0 commit comments