about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-02-25 09:16:25 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-02-25 09:16:25 +0000
commit9b8176a659443094762f242c854c4af7afd3d0ec (patch)
treeabf04352b6f081a34103e254211389774d87db55
parent8dcd8e54c54baddfb075d92c03f53117c7e1e6b1 (diff)
downloadzsh-9b8176a659443094762f242c854c4af7afd3d0ec.tar.gz
zsh-9b8176a659443094762f242c854c4af7afd3d0ec.tar.xz
zsh-9b8176a659443094762f242c854c4af7afd3d0ec.zip
make _message inhibit insertion of matches unless there are faked ones (16710)
-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}