| 560 | } |
| 561 | |
| 562 | static void |
| 563 | invert_match(struct xwindow *wp, |
| 564 | char *match) /* wildcard pattern for pmatch() */ |
| 565 | { |
| 566 | x11_menu_item *curr; |
| 567 | int count; |
| 568 | |
| 569 | reset_menu_count(wp->menu_information); |
| 570 | for (count = 0, curr = wp->menu_information->curr_menu.base; curr; |
| 571 | curr = curr->next, count++) |
| 572 | if (curr->identifier.a_void != 0) { |
| 573 | if (pmatchi(match, curr->str)) { |
| 574 | invert_line(wp, curr, count, -1L); |
| 575 | } |
| 576 | curr->preselected = FALSE; |
| 577 | } |
| 578 | |
| 579 | } |
| 580 | |
| 581 | static void |
| 582 | select_match(struct xwindow *wp, |
no test coverage detected