about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-07 08:53:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-07 08:53:39 +0000
commit1663a6319679ee07b78fc8671e12635ebdf7dab5 (patch)
treef91a4982c2dfb738acd15bc0519bf19de33df9e4 /Src
parent0ef4ecefc73f2813ae60bb787dee5c2cbffc0234 (diff)
downloadzsh-1663a6319679ee07b78fc8671e12635ebdf7dab5.tar.gz
zsh-1663a6319679ee07b78fc8671e12635ebdf7dab5.tar.xz
zsh-1663a6319679ee07b78fc8671e12635ebdf7dab5.zip
24959: crash with ^D in compctl
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compresult.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index 61fcceaaa..e595802dd 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -1188,6 +1188,12 @@ do_menucmp(int lst)
 {
     int was_meta;
 
+    /* Just list the matches if the list was requested. */
+    if (lst == COMP_LIST_COMPLETE) {
+	showinglist = -2;
+	return;
+    }
+
     /* Already metafied when called from domenuselect already */
     if (zlemetaline == NULL) {
 	was_meta = 0;
@@ -1195,12 +1201,6 @@ do_menucmp(int lst)
     } else
 	was_meta = 1;
 
-    /* Just list the matches if the list was requested. */
-    if (lst == COMP_LIST_COMPLETE) {
-	showinglist = -2;
-	return;
-    }
-
     /* Otherwise go to the next match in the array... */
     do {
 	if (!*++(minfo.cur)) {