]> granicus.if.org Git - nethack/commitdiff
untested curses number pad fix
authorPatR <rankin@nethack.org>
Wed, 27 Nov 2019 23:19:52 +0000 (15:19 -0800)
committerPatR <rankin@nethack.org>
Wed, 27 Nov 2019 23:19:52 +0000 (15:19 -0800)
This compiles ok but I don't have a number pad to test it with.

win/curses/cursmisc.c

index d0655efa1b7284cf005c225919c790d93a171f4e..0d813cfcfd9acfc49eaec5d53b485ef524f6f102 100644 (file)
@@ -920,7 +920,7 @@ curses_convert_keys(int key)
         if (iflags.num_pad) {
             ret = '7';
         } else {
-            ret = 'y';
+            ret = !Cmd.swap_yz ? 'y' : 'z';
         }
         break;
 #ifdef KEY_A3