summaryrefslogtreecommitdiff
path: root/lib/libcurses++/cursesm.cc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-08-15 11:35:59 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-08-15 11:35:59 +0000
commite4db1150c0061e4bbf6a2bb4a691a41e23fe7881 (patch)
treed0a88c3d24cfba6da40b295bfc3957666b7710e0 /lib/libcurses++/cursesm.cc
parentf90fd4086b8caa140f8c07d722dd13e7994a98dd (diff)
Update to ncurses-5.0-990814
Diffstat (limited to 'lib/libcurses++/cursesm.cc')
-rw-r--r--lib/libcurses++/cursesm.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libcurses++/cursesm.cc b/lib/libcurses++/cursesm.cc
index c7210fa0369..eed888a43f8 100644
--- a/lib/libcurses++/cursesm.cc
+++ b/lib/libcurses++/cursesm.cc
@@ -35,7 +35,7 @@
#include "cursesapp.h"
#include "internal.h"
-MODULE_ID("$From: cursesm.cc,v 1.10 1999/05/16 17:30:17 juergen Exp $")
+MODULE_ID("$From: cursesm.cc,v 1.11 1999/07/31 09:45:23 juergen Exp $")
NCursesMenuItem::~NCursesMenuItem() {
if (item)
@@ -306,7 +306,10 @@ NCursesMenu::operator()(void) {
NCursesMenuItem* itm = current_item();
assert(itm);
if (itm->options() & O_SELECTABLE)
- b_action = itm->action();
+ {
+ b_action = itm->action();
+ refresh();
+ }
else
On_Not_Selectable(c);
}
@@ -316,6 +319,7 @@ NCursesMenu::operator()(void) {
NCursesMenuItem* itm = my_items[i];
if (itm->value()) {
b_action |= itm->action();
+ refresh();
}
}
}