mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 11:21:13 +02:00
24672: fix(?) crash resizing window during menu-select
This commit is contained in:
parent
e01ff4c18a
commit
bc45a1b994
2 changed files with 12 additions and 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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue