* [PATCH] _ssh: Fix completion of ProxyCommand option.
@ 2016-09-04 19:25 Daniel Shahaf
0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2016-09-04 19:25 UTC (permalink / raw)
To: zsh-workers
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.
---
Completion/Unix/Command/_ssh | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 727fd35..7b2cdd8 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'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-04 19:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-04 19:25 [PATCH] _ssh: Fix completion of ProxyCommand option Daniel Shahaf
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).