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 | |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/complist.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index ee3e8207a..1911ec9d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-12-18 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> + + * 33978: Src/Zle/complist.c: update command line when accept- + and-hold is called in interactive mode of menu select + 2014-12-17 Peter Stephenson <p.stephenson@samsung.com> * users/19551: Doc/builtins.yo, Doc/Zsh/roadmap.yo: better 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); |