about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-28 09:04:02 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-28 09:04:02 +0000
commitf4a09871b005d1a65d69686bc901922b3dde9a37 (patch)
treeb33ec544cf411797e67b2f2420194174fb4214fe
parent0334b4df7cfd728cd8b9480872fbbfcb6029d1e6 (diff)
downloadzsh-f4a09871b005d1a65d69686bc901922b3dde9a37.tar.gz
zsh-f4a09871b005d1a65d69686bc901922b3dde9a37.tar.xz
zsh-f4a09871b005d1a65d69686bc901922b3dde9a37.zip
make _oldlist not use the dummy match added for the warning (12099)
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Core/_oldlist2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index be8da7772..4f826cfff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-06-28  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 12099: Completion/Core/_oldlist: make _oldlist not use the dummy
+ 	match added for the warning
+	
 	* 12093: Src/Zle/compcore.c, Src/Zle/complist.c, Src/Zle/compresult.c:
  	make a-a-i-n-h in menu selection work with one match; better undo
  	behaviour for menu selection
diff --git a/Completion/Core/_oldlist b/Completion/Core/_oldlist
index 991d01995..3ece0b7ca 100644
--- a/Completion/Core/_oldlist
+++ b/Completion/Core/_oldlist
@@ -1,6 +1,6 @@
 #autoload
 
-[[ _matcher_num -gt 1 ]] && return 1
+[[ _matcher_num -gt 1 || $_lastcomp[nmatches] -eq 0 ]] && return 1
 
 local list