Sfoglia il codice sorgente

rub out text when no item matches it

master
phillbush 4 anni fa
parent
commit
7bdb3b0bf8
1 ha cambiato i file con 6 aggiunte e 5 eliminazioni
  1. +6
    -5
      xmenu.c

+ 6
- 5
xmenu.c Vedi File

@@ -1289,12 +1289,13 @@ enteritem:
} else {
append:
if (append(text, buf, sizeof text, len)) {
currmenu->selected = matchitem(currmenu, text);
action = ACTION_DRAW;
} else {
select = NULL;
action = ACTION_SELECT | ACTION_DRAW;
if ((currmenu->selected = matchitem(currmenu, text))) {
action = ACTION_DRAW;
break;
}
}
select = NULL;
action = ACTION_SELECT | ACTION_DRAW;
break;
}
select = item;


Loading…
Annulla
Salva