summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/compresult.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c75d93ec9..12a464445 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-28  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 23478: Src/Zle/compresult.c: don't run reverse-menu-complete
+	if no completion yet.
+
 2007-05-27  Clint Adams  <clint@zsh.org>
 
 	* 23475: Completion/Unix/Command/_cdrecord: call $service
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index ebfb2cc47..62a35122f 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -1227,6 +1227,9 @@ reverse_menu(UNUSED(Hookdef dummy), UNUSED(void *dummy2))
 {
     int was_meta;
 
+    if (minfo.cur == NULL)
+	return 1;
+
     do {
 	if (minfo.cur == (minfo.group)->matches) {
 	    do {