menuinvertmode on curses
Change curses' use of menuitem_invert_test() to match the recently changed tty behavior: when menuinvertmode is 1 the test excludes special menu items that are flagged 'skip-invert' while handling select-all and select-page as well as invert-all and invert-page, and when that option is 2 then it also operates on deselect-all and deselect-page.
This commit is contained in:
@@ -1703,9 +1703,10 @@ menu_operation(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (menu_item_ptr->identifier.a_void != NULL) {
|
if (menu_item_ptr->identifier.a_void != NULL) {
|
||||||
if (operation != INVERT
|
if (menuitem_invert_test(((operation == INVERT) ? 0
|
||||||
|| menuitem_invert_test(0, menu_item_ptr->itemflags,
|
: (operation == SELECT) ? 1 : 2),
|
||||||
menu_item_ptr->selected))
|
menu_item_ptr->itemflags,
|
||||||
|
menu_item_ptr->selected))
|
||||||
menu_select_deselect(win, menu_item_ptr,
|
menu_select_deselect(win, menu_item_ptr,
|
||||||
operation, current_page);
|
operation, current_page);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user