about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-07 08:39:56 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-07 08:39:56 +0000
commit9ac1ee5703520f3bc34afff8ef009a0a8dceca33 (patch)
tree12b4f8b4d86865ba4897230218427ba1d8281e60 /Src/Zle/complist.c
parent9bb23440d2db294cc2f1ce7b840030d6d1e85003 (diff)
downloadzsh-9ac1ee5703520f3bc34afff8ef009a0a8dceca33.tar.gz
zsh-9ac1ee5703520f3bc34afff8ef009a0a8dceca33.tar.xz
zsh-9ac1ee5703520f3bc34afff8ef009a0a8dceca33.zip
hopefully more consistent beeping with menu-selection (11794)
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 2f7873d63..622219aaf 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1624,7 +1624,7 @@ domenuselect(Hookdef dummy, Chdata dat)
     Thingy cmd;
     Menustack u = NULL;
     int i = 0, acc = 0, wishcol = 0, setwish = 0, oe = onlyexpl, wasnext = 0;
-    int space, lbeg = 0, step = 1, wrap, pl = nlnct, broken = 0;
+    int space, lbeg = 0, step = 1, wrap, pl = nlnct, broken = 0, first = 1;
     char *s;
 
     if (fdat || (dummy && (!(s = getsparam("MENUSELECT")) ||
@@ -1712,6 +1712,9 @@ domenuselect(Hookdef dummy, Chdata dat)
 	lbeg = mlbeg;
 	onlyexpl = 0;
 	showinglist = -2;
+	if (first && !listshown && isset(LISTBEEP))
+	    zbeep();
+	first = 0;
 	zrefresh();
 	inselect = 1;
 	if (noselect) {
@@ -1745,9 +1748,10 @@ domenuselect(Hookdef dummy, Chdata dat)
 
     getk:
 
-	if (!(cmd = getkeycmd()) || cmd == Th(z_sendbreak))
+	if (!(cmd = getkeycmd()) || cmd == Th(z_sendbreak)) {
+	    zbeep();
 	    break;
-	else if (cmd == Th(z_acceptline)) {
+	} else if (cmd == Th(z_acceptline)) {
 	    acc = 1;
 	    break;
 	} else if (cmd == Th(z_acceptandinfernexthistory)) {