rub out text when no item matches it
This commit is contained in:
parent
b33886d7a2
commit
7bdb3b0bf8
7
xmenu.c
7
xmenu.c
|
@ -1289,12 +1289,13 @@ enteritem:
|
||||||
} else {
|
} else {
|
||||||
append:
|
append:
|
||||||
if (append(text, buf, sizeof text, len)) {
|
if (append(text, buf, sizeof text, len)) {
|
||||||
currmenu->selected = matchitem(currmenu, text);
|
if ((currmenu->selected = matchitem(currmenu, text))) {
|
||||||
action = ACTION_DRAW;
|
action = ACTION_DRAW;
|
||||||
} else {
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
select = NULL;
|
select = NULL;
|
||||||
action = ACTION_SELECT | ACTION_DRAW;
|
action = ACTION_SELECT | ACTION_DRAW;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
select = item;
|
select = item;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user