about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2014-12-18 03:49:51 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2014-12-18 03:49:51 +0900
commitfe51f39dadfc2a1651ac92edfb783f1e6100b7b1 (patch)
tree830fb75a29df9675703aaea0b752f5f91bffb7ff /Src/Zle
parent4042640eee1c95eb45e3eb773bb55ae556a0208e (diff)
downloadzsh-fe51f39dadfc2a1651ac92edfb783f1e6100b7b1.tar.gz
zsh-fe51f39dadfc2a1651ac92edfb783f1e6100b7b1.tar.xz
zsh-fe51f39dadfc2a1651ac92edfb783f1e6100b7b1.zip
33978: avoid infinite loop in interactive mode
Update command line when accept-and-hold is called in the
interactive mode of menu select.
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/complist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index c129940f7..b6e7e30e9 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -2790,7 +2790,9 @@ domenuselect(Hookdef dummy, Chdata dat)
 	    Menustack s = (Menustack) zhalloc(sizeof(*s));
 	    int ol;
 
-            mode = 0;
+	    if (mode == MM_INTER)
+		do_single(*minfo.cur);
+	    mode = 0;
 	    s->prev = u;
 	    u = s;
 	    s->line = dupstring(zlemetaline);