From d35aa35c3f4d6ff9afafe9b1d5f7463fe55615a3 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 18 Oct 2024 17:53:52 +0300 Subject: [PATCH] Don't put the unknown command message into history Even with Norep, it was cluttering the message history buffer. --- src/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd.c b/src/cmd.c index 725ce0d47..020786eab 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -3507,7 +3507,7 @@ rhack(int key) } if (bad_command) { - Norep("Unknown command '%s'.", visctrl(key)); + custompline(SUPPRESS_HISTORY, "Unknown command '%s'.", visctrl(key)); cmdq_clear(CQ_CANNED); cmdq_clear(CQ_REPEAT); }