Han Pingtian: 31167 (with tweak): limit use of colons for recognising

remote path in ssh completion
This commit is contained in:
Peter Stephenson 2013-03-20 20:33:45 +00:00
parent 0c226a6282
commit 275ba0fdca
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2013-03-20 Peter Stephenson <p.w.stephenson@ntlworld.com>
* Han Pingtian: 31167 (with tweak):
Completion/Unix/Command/_ssh: limit use of colons for detecting
a remote path.
2013-03-19 Bart Schaefer <schaefer@zsh.org>
* 31158: Src/pattern.c: following a wildcard with a repetition
@ -625,5 +631,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5825 $
* $Revision: 1.5826 $
*****************************************************

View File

@ -519,7 +519,7 @@ _ssh () {
fi
;;
file)
if compset -P '*:'; then
if compset -P '[^./][^/]#:'; then
_remote_files -- ssh ${(kv)~opt_args[(I)-[FP1246]]/-P/-p} && ret=0
elif compset -P '*@'; then
suf=( -S '' )