projects
/
xmenu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rub out text when no item matches it
[xmenu]
/
xmenu.c
diff --git
a/xmenu.c
b/xmenu.c
index
90e7906
..
f597aeb
100644
(file)
--- a/
xmenu.c
+++ b/
xmenu.c
@@
-1289,12
+1289,13
@@
enteritem:
} else {
append:
if (append(text, buf, sizeof text, len)) {
} 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;
break;
}
select = item;