diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-28 23:12:37 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-28 23:12:37 +0000 |
| commit | bc45a1b9942ff8d12e77fc038c265b8debc1ea77 (patch) | |
| tree | f01136b30ef44b56a6c8c5c0f1059e2811fb43e6 | |
| parent | 24626: only process command descriptions if extra-verbose style is set. (diff) | |
| download | zsh-bc45a1b9942ff8d12e77fc038c265b8debc1ea77.tar zsh-bc45a1b9942ff8d12e77fc038c265b8debc1ea77.tar.gz zsh-bc45a1b9942ff8d12e77fc038c265b8debc1ea77.tar.bz2 zsh-bc45a1b9942ff8d12e77fc038c265b8debc1ea77.tar.lz zsh-bc45a1b9942ff8d12e77fc038c265b8debc1ea77.tar.xz zsh-bc45a1b9942ff8d12e77fc038c265b8debc1ea77.tar.zst zsh-bc45a1b9942ff8d12e77fc038c265b8debc1ea77.zip | |
24672: fix(?) crash resizing window during menu-select
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/Zle/complist.c | 10 |
2 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2008-02-28 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 24627: Src/Zsh/complist.c: fix(?) crash when resizing window + during menu-select. + 2008-02-28 Clint Adams <clint@zsh.org> * 24626: Completion/Unix/Type/_path_commands, Doc/Zsh/compsys.yo: diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 97b55b609..0daef7941 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -122,7 +122,11 @@ static struct listcols mcolors; int mgtabsize; #endif -/* Used in mtab/mgtab, for explanations. */ +/* + * Used in mtab/mgtab, for explanations. + * + * UUUUUUUUUUUUUUURRRRGHHHHHHHHHH!!!!!!!!! --- pws + */ #define MMARK ((unsigned long) 1) #define mmarked(v) (((unsigned long) (v)) & MMARK) @@ -2325,8 +2329,7 @@ domenuselect(Hookdef dummy, Chdata dat) for (;;) { METACHECK(); - mtab_been_reallocated = 0; - if (mline < 0) { + if (mline < 0 || mtab_been_reallocated) { int x, y; Cmatch **p = mtab; @@ -2342,6 +2345,7 @@ domenuselect(Hookdef dummy, Chdata dat) if (y < mlines) mline = y; } + mtab_been_reallocated = 0; DPUTS(mline < 0, "BUG: mline < 0 after re-scanning mtab in domenuselect()"); while (mline < mlbeg) |
