1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-29 17:31:02 +01:00

38043: allow any completion widget to cycle matches for menu completion to fix reverse menu completion

This commit is contained in:
Oliver Kiddle 2016-03-07 13:15:40 +01:00
parent 28c46c1bfb
commit 8c29b34032
4 changed files with 9 additions and 10 deletions

View file

@ -30,10 +30,6 @@
#include "complete.mdh"
#include "compcore.pro"
/* The last completion widget called. */
static Widget lastcompwidget;
/* Flags saying what we have to do with the result. */
/**/
@ -471,8 +467,7 @@ before_complete(UNUSED(Hookdef dummy), int *lst)
/* If we are doing a menu-completion... */
if (minfo.cur && menucmp && *lst != COMP_LIST_EXPAND &&
(menucmp != 1 || !compwidget || compwidget == lastcompwidget)) {
if (minfo.cur && menucmp && *lst != COMP_LIST_EXPAND) {
do_menucmp(*lst);
return 1;
}
@ -481,7 +476,6 @@ before_complete(UNUSED(Hookdef dummy), int *lst)
onlyexpl = listdat.valid = 0;
return 1;
}
lastcompwidget = compwidget;
/* We may have to reset the cursor to its position after the *
* string inserted by the last completion. */