mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-20 06:56:05 +02:00
35623: fix menu-selection where initial selection
would not be displayed without scrolling
This commit is contained in:
parent
93e5234532
commit
fbc97e72e8
|
@ -1,3 +1,8 @@
|
|||
2015-06-29 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 35623: Src/Zle/complist.c: fix menu-selection where initial
|
||||
selection would not be displayed without scrolling
|
||||
|
||||
2015-06-28 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 35643: Src/parse.c: redirections after typeset assignments
|
||||
|
|
|
@ -2071,6 +2071,7 @@ complistmatches(UNUSED(Hookdef dummy), Chdata dat)
|
|||
memset(mgtab, 0, i * sizeof(Cmgroup));
|
||||
mlastcols = mcols = zterm_columns;
|
||||
mlastlines = mlines = listdat.nlines;
|
||||
mmtabp = 0;
|
||||
}
|
||||
last_cap = (char *) zhalloc(max_caplen + 1);
|
||||
*last_cap = '\0';
|
||||
|
@ -2562,6 +2563,8 @@ domenuselect(Hookdef dummy, Chdata dat)
|
|||
}
|
||||
p = mmtabp;
|
||||
pg = mgtabp;
|
||||
if (!p) /* selected match not in display, find line */
|
||||
continue;
|
||||
minfo.cur = *p;
|
||||
minfo.group = *pg;
|
||||
if (setwish)
|
||||
|
|
Loading…
Reference in New Issue