Introduction
Introduction Statistics Contact Development Disclaimer Help
Inverse logic in TI uiselectitem on non-match - sacc - sacc - sacc(omys), simpl…
git clone git://git.codemadness.org/sacc
Log
Files
Refs
LICENSE
---
commit 7ab95c658cf1dd546ec39603851742db65233204
parent 904cd0f37ae4028597cb85cb08190e998dfac62b
Author: Quentin Rameau <[email protected]>
Date: Fri, 11 Oct 2019 17:17:49 +0200
Inverse logic in TI uiselectitem on non-match
Diffstat:
M ui_ti.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/ui_ti.c b/ui_ti.c
@@ -516,13 +516,12 @@ uiselectitem(Item *entry)
case _key_search:
search:
free(searchstr);
- if ((searchstr = uiprompt("Search for: ")) &&
- searchstr[0])
- goto searchnext;
- clear(&searchstr);
- continue;
+ if (!((searchstr = uiprompt("Search for: ")) &&
+ searchstr[0])) {
+ clear(&searchstr);
+ continue;
+ }
case _key_searchnext:
- searchnext:
searchinline(searchstr, entry, +1);
continue;
case _key_searchprev:
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.