about summary refs log tree commit diff
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
parentdb95186da5a7d0057fa69cfb9393210751ab2cb2 (diff)
downloadzsh-3f630b6abf9b5bf7c93e74497e03a60ac0447bf4.tar.gz
zsh-3f630b6abf9b5bf7c93e74497e03a60ac0447bf4.tar.xz
zsh-3f630b6abf9b5bf7c93e74497e03a60ac0447bf4.zip
followup for 11364 (11367)
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Core/_path_files2
2 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c450bb5f..f7a300106 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,8 +3,8 @@
 	* 11365: Src/Zle/zle_tricky.c: fix for completion of string with
  	single quote
 	
-	* 11364: Completion/Core/_path_files, Src/Zle/compmatch.c: fix for
- 	suffix-matching; better in-path completion in _path_files
+	* 11364,11367: Completion/Core/_path_files, Src/Zle/compmatch.c:
+	fix for suffix-matching; better in-path completion in _path_files
 	
 2000-05-15  Peter Stephenson  <pws@cambridgesiliconradio.com>
 
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=