From: PatR Date: Sat, 12 Feb 2022 15:28:40 +0000 (-0800) Subject: tty PICK_NONE menus X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c862f2a9ca5213093ae6a81f43efccfd0f2c0de0;p=nethack tty PICK_NONE menus When testing the menu/incomplete map situation I noticed that didn't work to dismiss the "list autopickup exceptions" menu. or was required. That was clearly intentional but doesn't seem reasonable. Make behave the same for PICK_NONE as it does for other menu modes in tty and as it does for other interfaces. --- diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 52e16cc58..52ca674d8 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1214,6 +1214,8 @@ tty: '$' can now select gold in a menu even when it isn't on current page tty: if a menu used full screen and brought up another menu that wasn't full screen, sometimes only a small border of background was drawn around it with most of the map left blank until after the menu was dismissed +tty: have dismiss pick-none menus instead of acting like '>' (not + only wouldn't dismiss when not on last page, wouldn't dismiss at all) Unix: when user name is used as default character name, keep hyphenated value intact instead stripping off dash and whatever follows as if that specified role/race/&c (worked once upon a time; broken since 3.3.0) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index dc8c18707..534c3b2c4 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -2103,12 +2103,8 @@ process_menu_window(winid window, struct WinDesc *cw) case '\0': /* finished (commit) */ case '\n': case '\r': - /* only finished if we are actually picking something */ - if (cw->how != PICK_NONE) { - finished = TRUE; - break; - } - /* else fall through */ + finished = TRUE; + break; case ' ': case MENU_NEXT_PAGE: if (cw->npages > 0 && curr_page != cw->npages - 1) {