]> granicus.if.org Git - nethack/commitdiff
Fix mouse travel and look
authorPasi Kallinen <paxed@alt.org>
Tue, 5 Apr 2022 12:02:56 +0000 (15:02 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 5 Apr 2022 12:03:20 +0000 (15:03 +0300)
Looks like I broke mouse travel and clicklook a while back, and
no-one noticed...

src/cmd.c

index d67096b61a6af84556371aa4a2a514ebbffebe36..d46119f074124121aa1c436e324e3a1225e90f56 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -3917,6 +3917,9 @@ rhack(char *cmd)
             goto do_cmdq_extcmd;
     } else if (firsttime) {
         cmd = parse();
+        /* parse() pushed a cmd but didn't return any key */
+        if (!*cmd && g.command_queue)
+            goto got_prefix_input;
     }
 
     if (*cmd == g.Cmd.spkeys[NHKF_ESC]) {