Entering a multi-digit count when selecting from a menu in the curses interface causes the menu to disappear. Report was about putting a large subset of an object stack into a container but the bug affected all menus that accepted counts. curses_get_count() was changed to call core's get_count() quite a while back. get_count() calls mark_synch() when more that one digit is typed or when backspace to remove the first digit occurs. curses_mark_synch() had been a no-op but more recently it was changed to try to make sure that the screen was up to date. But it did that by refreshing the persistent windows, making any temporary popup menu or text window become hidden. Also, the count-in-progress is being sent to the message window with the no-history flag, so refreshing the message window removed that too. Switch curses_mark_synch() to use the basic screen refresh call that doesn't do anything window-specific. This also changes menu count handling to have get_count() echo the number starting with the first digit instead of waiting until the second. If anything in the menu makes it be very wide it can cover up the message window and any count being echoed there won't be visible. I'm not going to try to figure out how to deal with that; it isn't all that different from the old single-digit/unseen-count behavior.
32 KiB
32 KiB