about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Base/Completer/_expand2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cbdd5bb3d..fc92100e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-30  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 14160: Completion/Base/Completer/_expand: fixelt for the test
+	for the suffix style; if word contains only a tilde, don't try
+	to expand it
+
 2001-04-30  Andrej Borsenkow <bor@zsh.org>
 
 	* Bart: 14144 (modified):  Src/Modules/stat.c
diff --git a/Completion/Base/Completer/_expand b/Completion/Base/Completer/_expand
index f3da119e1..c6250cd16 100644
--- a/Completion/Base/Completer/_expand
+++ b/Completion/Base/Completer/_expand
@@ -34,7 +34,7 @@ fi
 
 zstyle -T ":completion:${curcontext}:" suffix &&
   [[ "$word" = (\~*/|*\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|*\$\{*\}?) &&
-     "${(e)word}" != *[][^~*?\<\>\{\}\|]* ]] &&
+     "${(e)word}" != *[][^*?\(\)\<\>\{\}\|]* ]] &&
   return 1
 
 zstyle -t ":completion:${curcontext}:" accept-exact ||