altmeta vs number_pad

While testing a potential fix for issue #1250, I discovered that
using the altmeta option, to simulate typing Alt+x to get M-x via
typing 'ESC x', didn't work after a count prefixed by 'n' when in
number_pad mode.  It did work as intended for !number_pad when a
repeat count prefix is entered via digits without 'n'.

This doesn't solve #1250, which also occurs for number_pad but not
for !number_pad.
This commit is contained in:
PatR
2024-06-17 04:23:34 -07:00
parent 78bf0db5b3
commit c2f717cd65
2 changed files with 16 additions and 2 deletions

View File

@@ -1418,6 +1418,10 @@ only honor DEBUGFILES (for activating debugpline() calls) when in wizard mode
if hero is on scroll of scare monster or Elbereth, werecreature switching from
human to beast form or general monster polymorphing into a susceptible
form will become scared right away instead on its next move
'altmeta' option didn't work as intended when 'number_pad' was On; typing
"n <count> ESC c" wasn't treated as "n <count> M-c" because reading
the 'n' changed program_state.input_state from commandInp to otherInp,
preventing special ESC handling; not an issue when number_pad was Off
Fixes to 3.7.0-x General Problems Exposed Via git Repository