From 275ba0fdcae1b028c2989ba817e6f3c42fb9366a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 20 Mar 2013 20:33:45 +0000 Subject: Han Pingtian: 31167 (with tweak): limit use of colons for recognising remote path in ssh completion --- Completion/Unix/Command/_ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_ssh') diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh index 7e85e2bb6..3e499b8d0 100644 --- a/Completion/Unix/Command/_ssh +++ b/Completion/Unix/Command/_ssh @@ -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 '' ) -- cgit 1.4.1