]> granicus.if.org Git - nethack/commitdiff
fixes entry for pull request #677 - com_pager
authorPatR <rankin@nethack.org>
Sat, 12 Feb 2022 15:56:14 +0000 (07:56 -0800)
committerPatR <rankin@nethack.org>
Sat, 12 Feb 2022 15:56:14 +0000 (07:56 -0800)
From argrath, have com_pager_core() check for null return from
nhl_init() to pacify some code checker.  If nhl_init() ever fails,
the program will never get far enough to try to use com_pager().

Closes #677

doc/fixes3-7-0.txt

index 4e6bea5e02ab3f5d1c0f76d21fcece4dfc501ad0..d39c13dea12f75876466bc573610596b456f96c7 100644 (file)
@@ -1010,9 +1010,11 @@ giving a prefix keystroke other than 'm' prior to a command that doesn't use
 prior revision broke all prefix usage
 movement command revamp broke 'm>' and 'm<' on stairs to avoid auto-pickup at
        the destination
-when trapeffect_selector() returns 2 to caller mintrap(), meant to
-       signify that the monster was killed in the trap, ensure that
-       mintrap() returns that value too
+when trapeffect_selector() returns 2 to caller mintrap(), meant to signify
+       that the monster was killed in the trap, ensure that mintrap()
+       returns that value too
+have com_pager() check for failed nhl_init(); probably can't actually happen
+       because the program would never get that far if lua init was failing
 
 curses: 'msg_window' option wasn't functional for curses unless the binary
        also included tty support