tweak match
4c8d43ab
1 file(s) · +2 −2
| 392 | 392 | appenditem(item, &lsubstr, &substrend); |
|
| 393 | 393 | } |
|
| 394 | 394 | if(lprefix) { |
|
| 395 | - | if(matchend) { |
|
| 395 | + | if(matches) { |
|
| 396 | 396 | matchend->right = lprefix; |
|
| 397 | 397 | lprefix->left = matchend; |
|
| 398 | 398 | } |
|
| 401 | 401 | matchend = prefixend; |
|
| 402 | 402 | } |
|
| 403 | 403 | if(lsubstr) { |
|
| 404 | - | if(matchend) { |
|
| 404 | + | if(matches) { |
|
| 405 | 405 | matchend->right = lsubstr; |
|
| 406 | 406 | lsubstr->left = matchend; |
|
| 407 | 407 | } |
|