Curses: partial stack unselecting

In curses, selecting a partial stack, then unselecting the entry,
and then selecting it normally, the entry still kept the quantity
from the partial selection. Make it behave like all the other
windowports by resetting the quantity when the entry is unselected.
This commit is contained in:
Pasi Kallinen
2023-04-05 19:50:43 +03:00
parent 5ac4221d6a
commit 697ef9760c
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1636,6 +1636,7 @@ menu_select_deselect(
if (operation == DESELECT || (item->selected && operation == INVERT)) {
item->selected = FALSE;
item->count = -1L;
if (visible) {
mvwaddch(win, item->line_num + 1, 1, ' ');
curses_toggle_color_attr(win, HIGHLIGHT_COLOR, NONE, ON);