aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-03-13 12:02:29 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-03-13 12:02:29 +0000
commit301b4e55912dc611bd941002b27c72f17fcc5b39 (patch)
tree2d209964ab7829595298f549271b728a42b797cf
parent38b866ba3453e2a7567b084a353e50a36ed92221 (diff)
downloaddmenu-3.5.tar.gz
dmenu-3.5.tar.bz2
dmenu-3.5.zip
applied next patch of Sander3.5
-rw-r--r--dmenu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dmenu.c b/dmenu.c
index ddde475..5f81d25 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -505,9 +505,8 @@ match(char *pattern) {
item = j = NULL;
nitem = 0;
for(i = allitems; i; i = i->next)
- if(!fstrncmp(pattern, i->text, plen))
- j = appenditem(i, j);
- else if(fstrstr(i->text, pattern))
+ if(!fstrncmp(pattern, i->text, plen)
+ || fstrstr(i->text, pattern))
j = appenditem(i, j);
curr = prev = next = sel = item;
calcoffsets();