Mercurial > vim
comparison src/getchar.c @ 34991:ca76febc62fc v9.1.0351
patch 9.1.0351: No test that completing a partial mapping clears 'showcmd'
Commit: https://github.com/vim/vim/commit/094c4390bdf3473fab122aa02883e63ce4e66cdb
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Apr 18 22:09:37 2024 +0200
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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 18 Apr 2024 22:15:04 +0200 |
parents | 52db4364a5cd |
children | 59d23ae7dbb0 |
comparison
equal
deleted
inserted
replaced
34990:f60dd4ced756 | 34991:ca76febc62fc |
---|---|
1279 #endif | 1279 #endif |
1280 if (++typebuf.tb_change_cnt == 0) | 1280 if (++typebuf.tb_change_cnt == 0) |
1281 typebuf.tb_change_cnt = 1; | 1281 typebuf.tb_change_cnt = 1; |
1282 } | 1282 } |
1283 | 1283 |
1284 /* | |
1285 * State for adding bytes to a recording or 'showcmd'. | |
1286 */ | |
1284 typedef struct | 1287 typedef struct |
1285 { | 1288 { |
1286 int prev_c; | 1289 int prev_c; |
1287 char_u buf[MB_MAXBYTES * 3 + 4]; | 1290 char_u buf[MB_MAXBYTES * 3 + 4]; |
1288 size_t buflen; | 1291 size_t buflen; |