]> git.armaanb.net Git - dmenu.git/commitdiff
applied next patch of Sander
authorAnselm R Garbe <garbeam@gmail.com>
Thu, 13 Mar 2008 12:02:29 +0000 (12:02 +0000)
committerAnselm R Garbe <garbeam@gmail.com>
Thu, 13 Mar 2008 12:02:29 +0000 (12:02 +0000)
dmenu.c

diff --git a/dmenu.c b/dmenu.c
index ddde475f9a2068c544fd0cd1ea3ef14fe73f0ae2..5f81d253d4c50f3e9ab2891055278f1edd3b45c4 100644 (file)
--- 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();