When testing the menu/incomplete map situation I noticed that <return>
didn't work to dismiss the "list autopickup exceptions" menu. <space>
or <escape> was required. That was clearly intentional but doesn't
seem reasonable. Make <return> behave the same for PICK_NONE as it
does for other menu modes in tty and as it does for other interfaces.
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 <return> 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)
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) {