From 90b07817db10a67cc58d5bcad20ab6fc191146de Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 13 Feb 2001 09:23:34 +0000 Subject: wehn using glob_complete, don't treat everything starting with a tilde as a pattern (13459) --- Completion/Core/_path_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index bce3144af..5aa85c706 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -622,7 +622,7 @@ for prepath in "$prepaths[@]"; do compquote tmp4 tmp1 fi if [[ -z "$_comp_correct" && -n "$compstate[pattern_match]" && - "$PREFIX$SUFFIX" = (|*[^\\])[][*?#~^\|\<\>]* ]]; then + "${PREFIX#\~}$SUFFIX" = (|*[^\\])[][*?#~^\|\<\>]* ]]; then compadd -Qf -W "$prepath$realpath" "$pfxsfx[@]" "$mopts[@]" \ -M "r:|/=* r:|=*" - "$linepath$tmp4${(@)^tmp1}" else -- cgit 1.4.1