about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-16 11:24:55 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-16 11:24:55 +0000
commit95883d8b95f7bcbde921b5337f1d24384c36cc87 (patch)
tree12be39beff7df933497e4c88e2101a5fca66ca92 /Completion/Core
parent0129f41d8002b403d6b335c27264df2cdee7369d (diff)
downloadzsh-95883d8b95f7bcbde921b5337f1d24384c36cc87.tar.gz
zsh-95883d8b95f7bcbde921b5337f1d24384c36cc87.tar.xz
zsh-95883d8b95f7bcbde921b5337f1d24384c36cc87.zip
avoid tilde- and parameter-completion in quotes (11407)
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_path_files4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index cd6700d5a..31dbcea15 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -160,7 +160,7 @@ eorig="$orig"
 
 # Now let's have a closer look at the string to complete.
 
-if [[ "$pre[1]" = \~ ]]; then
+if [[ "$pre[1]" = \~ && -z "$compstate[quote]" ]]; then
   # It begins with `~', so remember anything before the first slash to be able
   # to report it to the completion code. Also get an expanded version of it
   # (in `realpath'), so that we can generate the matches. Then remove that
@@ -209,7 +209,7 @@ if [[ "$pre[1]" = \~ ]]; then
   orig="${orig#*/}"
   donepath=
   prepaths=( '' )
-elif [[ "$pre" = *\$*/* ]]; then
+elif [[ "$pre" = *\$*/* && "$compstate[quote]" != \" ]]; then
 
   # If there is a parameter expansion in the word from the line, we try
   # to complete the beast by expanding the prefix and completing anything