summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/acr.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 59df526ad9..0c34f57f08 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -1539,6 +1539,12 @@ static void _input()
// the keys to repeat are recorded.
if (cmd == CMD_REPEAT_CMD)
return;
+
+ // If the command was CMD_PREV_CMD_AGAIN then _input() has been
+ // recursively called by _do_prev_cmd_again() via process_command()
+ // to re-do the command, so there's nothing more to do.
+ if (cmd == CMD_PREV_CMD_AGAIN)
+ return;
}
if (need_to_autoinscribe())