diff options
author | Oliver Kiddle <opk@zsh.org> | 2015-06-29 01:46:39 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2015-06-29 01:46:39 +0200 |
commit | fbc97e72e8f3f0b9be9bd3f24f36a1e8e5a6701d (patch) | |
tree | c8e3ad2b7f5243e62eff02aa80d9071bef1e0bd7 /Src/Zle | |
parent | 93e5234532eb14acbb90c7502f2728589f375277 (diff) | |
download | zsh-fbc97e72e8f3f0b9be9bd3f24f36a1e8e5a6701d.tar.gz zsh-fbc97e72e8f3f0b9be9bd3f24f36a1e8e5a6701d.tar.xz zsh-fbc97e72e8f3f0b9be9bd3f24f36a1e8e5a6701d.zip |
35623: fix menu-selection where initial selection
would not be displayed without scrolling
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index ccee9a724..18551d05d 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -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) |