Refresh before calling selection hook.

This commit is contained in:
Jordan K. Hubbard 1996-01-05 04:00:51 +00:00
parent 67e73a53fc
commit 24b935d90e
2 changed files with 6 additions and 2 deletions

View File

@ -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() */

View File

@ -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() */