summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2013-03-20 20:33:45 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2013-03-20 20:33:45 +0000
commit275ba0fdcae1b028c2989ba817e6f3c42fb9366a (patch)
tree325d328878f0c2b0920bfbcd6222efd0ae7524a4 /Completion/Unix
parent0c226a628297057e2ef5a8e06755e1c37b260304 (diff)
downloadzsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.tar.gz
zsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.tar.xz
zsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.zip
Han Pingtian: 31167 (with tweak): limit use of colons for recognising
remote path in ssh completion
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_ssh2
1 files changed, 1 insertions, 1 deletions
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 '' )