about summary refs log tree commit diff
diff options
context:
space:
mode:
-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=