summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-18 22:09:37 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-18 22:09:37 +0200
commit094c4390bdf3473fab122aa02883e63ce4e66cdb (patch)
treef2aaf878a5d5868c6b4375b848d64e920e49216f /src/getchar.c
parent1fa22e3ad67d9df48b397076ed2632de41a76244 (diff)
patch 9.1.0351: No test that completing a partial mapping clears 'showcmd'v9.1.0351
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 <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c3
1 files changed, 3 insertions, 0 deletions
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;