diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-04 19:25:58 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-06 23:49:07 +0000 |
commit | 30bb9fe7b770304422a4958f76b0cec0b918a89a (patch) | |
tree | ba5a5392461bce89a9e0c208c74170b08c818ac8 /Completion | |
parent | 73c0e8d4e679ed681acc4883234324c7676cc676 (diff) | |
download | zsh-30bb9fe7b770304422a4958f76b0cec0b918a89a.tar.gz zsh-30bb9fe7b770304422a4958f76b0cec0b918a89a.tar.xz zsh-30bb9fe7b770304422a4958f76b0cec0b918a89a.zip |
39174: _ssh: Fix completion of ProxyCommand option.
The incumbent code would discard the first word of the value of the ProxyCommand option. Stop doing so. With that removed the remaining two lines were equivalent to _cmdstring, so just call it directly.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_ssh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh index 727fd35f4..7b2cdd8e1 100644 --- a/Completion/Unix/Command/_ssh +++ b/Completion/Unix/Command/_ssh @@ -382,10 +382,7 @@ _ssh () { '2' && ret=0 ;; (#i)proxycommand=*) - compset -q - shift 1 words - (( CURRENT-- )) - _normal && ret=0 + _cmdstring && ret=0 ;; (#i)rekeylimit=*) _message -e 'maximum number of bytes transmitted before renegotiating session key' |