summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-02-13 09:23:34 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-02-13 09:23:34 +0000
commit90b07817db10a67cc58d5bcad20ab6fc191146de (patch)
treeaf72046db0d909b3366707282686ab7037e6cb5e
parent275f3c95d44e69abc858fc8fb4836f699c239574 (diff)
downloadzsh-90b07817db10a67cc58d5bcad20ab6fc191146de.tar.gz
zsh-90b07817db10a67cc58d5bcad20ab6fc191146de.zip
wehn using glob_complete, don't treat everything starting with a tilde as a pattern (13459)
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Core/_path_files2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e85487e1..094569922 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-13 Sven Wischnowsky <wischnow@zsh.org>
+
+ * 13459: Completion/Core/_path_files: wehn using glob_complete,
+ don't treat everything starting with a tilde as a pattern
+
2001-02-12 Bart Schaefer <schaefer@zsh.org>
* 13457: Completion/Core/compinit: Add `glob' to $_comp_options.
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