about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-15 10:45:24 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-15 10:45:24 +0000
commit3f630b6abf9b5bf7c93e74497e03a60ac0447bf4 (patch)
tree40a6bddf9a2453ece4eeb65a7ba0c9f327bcd412 /Completion
parentdb95186da5a7d0057fa69cfb9393210751ab2cb2 (diff)
downloadzsh-3f630b6abf9b5bf7c93e74497e03a60ac0447bf4.tar.gz
zsh-3f630b6abf9b5bf7c93e74497e03a60ac0447bf4.tar.xz
zsh-3f630b6abf9b5bf7c93e74497e03a60ac0447bf4.zip
followup for 11364 (11367)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_path_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 8f9a90245..cd6700d5a 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -529,7 +529,7 @@ for prepath in "$prepaths[@]"; do
       cpre="${cpre}${tpre%%/*}/"
       tpre="${tpre#*/}"
     elif [[ "$tsuf" = */* ]]; then
-      mid="$testpath"
+      [[ "$tsuf" != /* ]] && mid="$testpath"
       cpre="${cpre}${tpre}/"
       tpre="${tsuf#*/}"
       tsuf=