diff options
| author | Connor Lane Smith <cls@lubutu.com> | 2011-09-20 00:09:20 +0100 |
|---|---|---|
| committer | Connor Lane Smith <cls@lubutu.com> | 2011-09-20 00:09:20 +0100 |
| commit | 4c8d43ab7382910f3577d6ed03ebaf3026db8419 (patch) | |
| tree | 6cd222d8dd759b73a5d467e23f7f0a13b96aff73 | |
| parent | 0582480801d5815ef39fd624cb4ba108d0d21b35 (diff) | |
tweak match
| -rw-r--r-- | dmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -392,7 +392,7 @@ match(void) { | |||
| 392 | appenditem(item, &lsubstr, &substrend); | 392 | appenditem(item, &lsubstr, &substrend); |
| 393 | } | 393 | } |
| 394 | if(lprefix) { | 394 | if(lprefix) { |
| 395 | if(matchend) { | 395 | if(matches) { |
| 396 | matchend->right = lprefix; | 396 | matchend->right = lprefix; |
| 397 | lprefix->left = matchend; | 397 | lprefix->left = matchend; |
| 398 | } | 398 | } |
| @@ -401,7 +401,7 @@ match(void) { | |||
| 401 | matchend = prefixend; | 401 | matchend = prefixend; |
| 402 | } | 402 | } |
| 403 | if(lsubstr) { | 403 | if(lsubstr) { |
| 404 | if(matchend) { | 404 | if(matches) { |
| 405 | matchend->right = lsubstr; | 405 | matchend->right = lsubstr; |
| 406 | lsubstr->left = matchend; | 406 | lsubstr->left = matchend; |
| 407 | } | 407 | } |
