summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Base/Core/_message2
-rw-r--r--Test/Y03arguments.ztst2
3 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 758b034eb..b2fb2ba43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-02-25  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 16710: Completion/Base/Core/_message, Test/Y03arguments.ztst:
+	make _message inhibit insertion of matches unless there are
+	faked ones
+
 	* 16708: Completion/Base/Core/_message,
 	Completion/Base/Utility/_guard, Completion/Unix/Command/_grep,
 	Completion/Unix/Command/_pbm, Completion/Unix/Command/_pine,
diff --git a/Completion/Base/Core/_message b/Completion/Base/Core/_message
index 2ad778082..13c83989f 100644
--- a/Completion/Base/Core/_message
+++ b/Completion/Base/Core/_message
@@ -18,6 +18,8 @@ if [[ "$1" = -e ]]; then
     ret=0
   done
 
+  (( $compstate[nmatches] )) || compstate[insert]=
+
   return ret
 fi
 
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst
index ba9188357..a62e34a7e 100644
--- a/Test/Y03arguments.ztst
+++ b/Test/Y03arguments.ztst
@@ -91,7 +91,7 @@
  comptest $'tst -\t'
 0:argument beginning with minus
 >line: {tst -}{}
->MESSAGE:{arg}
+>DESCRIPTION:{arg}
 >DESCRIPTION:{option}
 >NO:{-x}