X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=dmenu.c;h=1cd9f611312064ef7e4449b03661b9e75e040e49;hb=4c8d43ab7382910f3577d6ed03ebaf3026db8419;hp=2bad8d6860af582f87339c201fdafe757d70f403;hpb=0582480801d5815ef39fd624cb4ba108d0d21b35;p=dmenu.git diff --git a/dmenu.c b/dmenu.c index 2bad8d6..1cd9f61 100644 --- a/dmenu.c +++ b/dmenu.c @@ -392,7 +392,7 @@ match(void) { appenditem(item, &lsubstr, &substrend); } if(lprefix) { - if(matchend) { + if(matches) { matchend->right = lprefix; lprefix->left = matchend; } @@ -401,7 +401,7 @@ match(void) { matchend = prefixend; } if(lsubstr) { - if(matchend) { + if(matches) { matchend->right = lsubstr; lsubstr->left = matchend; }