diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2014-12-18 03:49:51 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2014-12-18 03:49:51 +0900 |
commit | fe51f39dadfc2a1651ac92edfb783f1e6100b7b1 (patch) | |
tree | 830fb75a29df9675703aaea0b752f5f91bffb7ff /Src/Zle/complist.c | |
parent | 4042640eee1c95eb45e3eb773bb55ae556a0208e (diff) | |
download | zsh-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/complist.c')
-rw-r--r-- | Src/Zle/complist.c | 4 |
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); |