1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

don't use optimised completion list display code after the list has been erased or we're not in menu selection anymore anyway (17286)

This commit is contained in:
Sven Wischnowsky 2002-06-05 07:49:02 +00:00
parent 07047de129
commit 5221570c4a
2 changed files with 7 additions and 1 deletions

@ -1,3 +1,9 @@
2002-06-05 Sven Wischnowsky <wischnow@zsh.org>
* 17286: Src/Zle/complist.c: don't use optimised completion
list display code after the list has been erased or we're not
in menu selection anymore anyway
2002-06-04 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 17283: Src/parse.c: `func() { ... } this bit was ignored'.

@ -1652,7 +1652,7 @@ complistmatches(Hookdef dummy, Chdata dat)
last_cap = (char *) zhalloc(max_caplen + 1);
*last_cap = '\0';
if (!mnew && onlnct == nlnct && mlbeg >= 0 && mlbeg == molbeg)
if (!mnew && inselect && onlnct == nlnct && mlbeg >= 0 && mlbeg == molbeg)
singledraw();
else if (!compprintlist(mselect >= 0) || !clearflag)
noselect = 1;