]> granicus.if.org Git - nethack/commit
Curses: fix extended command input
authorPasi Kallinen <paxed@alt.org>
Sat, 22 Jan 2022 12:32:50 +0000 (14:32 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 22 Jan 2022 12:32:53 +0000 (14:32 +0200)
commit9d64d135b8d238e25bd9a20f76c2a7b68c7f4d0e
tree8401cc14ea10bbec70e5340ef785d0e54a995eb1
parentfe4ae913cc3dfb2719eefd50a0a29de66d06a8d2
Curses: fix extended command input

The extended command input prompt was behaving in an unintended way:
Typing #a<enter> executed #adjust. Spaces in the entry prevented matching
any command. No error message was given when no command was matched.

Fix all of those, so it behaves more like the tty.

Clean up the tty, curses, and X11 windowport code, so they don't use
the extcmdlist array directly, but query with extcmds_match
and extcmds_getentry.
doc/fixes37.0
include/extern.h
include/func_tab.h
src/cmd.c
win/X11/winmisc.c
win/curses/cursdial.c
win/tty/getline.c