about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-27 08:33:25 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-27 08:33:25 +0000
commit6345ce7f644e92d0b28a50096199bbb73fa7f73c (patch)
tree11556f4eeaa69d4061d21e3de55d6b697c73b791 /Src/Zle/complist.c
parent270b48432de9ef8f17e97695576ccaf426d7e9c5 (diff)
downloadzsh-6345ce7f644e92d0b28a50096199bbb73fa7f73c.tar.gz
zsh-6345ce7f644e92d0b28a50096199bbb73fa7f73c.tar.xz
zsh-6345ce7f644e92d0b28a50096199bbb73fa7f73c.zip
zsh-workers/8437
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index dc1037122..cc2ac7517 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -251,6 +251,7 @@ getcols(Listcols c)
 /* Information about the list shown. */
 
 static int noselect, mselect, inselect, mcol, mline, mcols, mlines, mmlen;
+static int selected;
 static Cmatch **mtab, **mmtabp;
 static Cmgroup *mgtab, *mgtabp;
 static struct listcols mcolors;
@@ -567,6 +568,7 @@ domenuselect(Hookdef dummy, Chdata dat)
 	    inselect = 1;
 	    if (noselect)
 		break;
+	    selected = 1;
 	    if (!i) {
 		i = mcols * mlines;
 		while (i--)
@@ -876,8 +878,9 @@ menuselect(char **args)
     int d = 0;
 
     if (!minfo.cur) {
+	selected = 0;
 	menucomplete(args);
-	if ((minfo.cur && minfo.asked == 2) || getsparam("ZLS_SELECT"))
+	if ((minfo.cur && minfo.asked == 2) || selected)
 	    return 0;
 	d = 1;
     }