Don't put the unknown command message into history

Even with Norep, it was cluttering the message history buffer.
This commit is contained in:
Pasi Kallinen
2024-10-18 17:53:52 +03:00
parent 0530ca0758
commit d35aa35c3f

View File

@@ -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);
}