diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-28 19:03:00 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-01-28 19:03:00 +0100 |
commit | bf321806bf44d59f108fd7e5a0eaead04682701d (patch) | |
tree | a85148304c17b07d8d4ca3d028cd844fdba31474 /src/getchar.c | |
parent | cf8695d48cdded63043430af5a84185e9614e84c (diff) |
patch 9.1.0060: Recorded register cannot be translated using keytrans()v9.1.0060
Problem: Recorded register cannot be translated using keytrans() when
it involves character search (iddqd505)
Solution: Record a K_IGNORE instead of a K_NOP (zeertzjq)
related: #13916
closes: #13925
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.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/getchar.c b/src/getchar.c index 3427a9f8da..49a24f08b8 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -1339,12 +1339,12 @@ gotchars(char_u *chars, int len) } /* - * Record a <Nop> key. + * Record an <Ignore> key. */ void -gotchars_nop(void) +gotchars_ignore(void) { - char_u nop_buf[3] = { K_SPECIAL, KS_EXTRA, KE_NOP }; + char_u nop_buf[3] = { K_SPECIAL, KS_EXTRA, KE_IGNORE }; gotchars(nop_buf, 3); } @@ -3666,9 +3666,9 @@ vgetorpeek(int advance) #endif if (timedout && c == ESC) { - // When recording there will be no timeout. Add a <Nop> after the ESC - // to avoid that it forms a key code with following characters. - gotchars_nop(); + // When recording there will be no timeout. Add an <Ignore> after the + // ESC to avoid that it forms a key code with following characters. + gotchars_ignore(); } --vgetc_busy; |