Don't put non-m-prefix command msg into history

This commit is contained in:
Pasi Kallinen
2026-04-11 23:05:41 +03:00
parent 80cc5ecb29
commit 8cf6c62862

View File

@@ -3704,7 +3704,8 @@ rhack(int key)
* the former call to help_dir() (for 'bad_command' below).
*/
if (was_m_prefix) {
pline("The %s command does not accept '%s' prefix.",
custompline(SUPPRESS_HISTORY,
"The %s command does not accept '%s' prefix.",
tlist->ef_txt, which);
} else {
uchar ch = tlist->key;