From 094c4390bdf3473fab122aa02883e63ce4e66cdb Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 18 Apr 2024 22:09:37 +0200 Subject: patch 9.1.0351: No test that completing a partial mapping clears 'showcmd' Problem: No test that completing a partial mapping clears 'showcmd'. Solution: Complete partial mappings in Test_showcmd_part_map() instead of using :echo. Adjust some comments (zeertzjq). closes: #14580 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- src/getchar.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/getchar.c') diff --git a/src/getchar.c b/src/getchar.c index 783146fe1a..4e1c48c523 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -1281,6 +1281,9 @@ del_typebuf(int len, int offset) typebuf.tb_change_cnt = 1; } +/* + * State for adding bytes to a recording or 'showcmd'. + */ typedef struct { int prev_c; -- cgit v1.2.3