From 8cf6c628626d85d3b189c8da81c753864e1d4ac1 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 11 Apr 2026 23:05:41 +0300 Subject: [PATCH] Don't put non-m-prefix command msg into history --- src/cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd.c b/src/cmd.c index 8457f8b14..c0718e4e4 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -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;