Refresh before calling selection hook.
This commit is contained in:
parent
67e73a53fc
commit
24b935d90e
@ -499,7 +499,9 @@ print_item(WINDOW *win, unsigned char *tag, unsigned char *item, int status, int
|
||||
wattrset(win, selected ? item_selected_attr : item_attr);
|
||||
waddstr(win, item);
|
||||
/* If have a selection handler for this, call it */
|
||||
if (me && me->selected)
|
||||
if (me && me->selected) {
|
||||
wrefresh(win);
|
||||
me->selected(me, selected);
|
||||
}
|
||||
}
|
||||
/* End of print_item() */
|
||||
|
@ -485,7 +485,9 @@ print_item(WINDOW *win, char *tag, char *item, int status, int choice, int selec
|
||||
wattrset(win, selected ? item_selected_attr : item_attr);
|
||||
waddstr(win, item);
|
||||
/* If have a selection handler for this, call it */
|
||||
if (me && me->selected)
|
||||
if (me && me->selected) {
|
||||
wrefresh(win);
|
||||
me->selected(me, selected);
|
||||
}
|
||||
}
|
||||
/* End of print_item() */
|
||||
|
Loading…
x
Reference in New Issue
Block a user