From 3f630b6abf9b5bf7c93e74497e03a60ac0447bf4 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 15 May 2000 10:45:24 +0000 Subject: followup for 11364 (11367) --- ChangeLog | 4 ++-- Completion/Core/_path_files | 2 +- 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 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= -- cgit 1.4.1