fix #K3357 - curses menu disappears
This fixes the disappearing menu, but not curses menu count entry failing to honor backspace/delete. Entering two or more digits to get a "Count:12" message, followed by non-digit which removes that, resulted in the menu for apply/loot in-out container operation vanishing while it was still waiting for a choice. (Typing a choice blindly did work.) The code intended to handle this. I don't understand why refresh() wasn't working. Reordering stuff didn't help until I changed that from refresh() to wrefresh(win). The original Count:123 display was limited to 25 characters and menus to half the main window, so they didn't overlap. I made the count display wider--because it is now also used for 'autodescribe' feedback when moving the cursor around the map--so made something that originally was impossible become possible. One line of the menu does get erased while "Count:" is displayed, but then gets put back by the wrefresh().
This commit is contained in:
@@ -65,7 +65,7 @@ curses_read_char(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (counting && !isdigit(ch)) { /* Dismiss count window if necissary */
|
||||
if (counting && !isdigit(ch)) { /* dismiss count window if necessary */
|
||||
curses_count_window(NULL);
|
||||
curses_refresh_nethack_windows();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user