diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-01-28 14:23:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 14:23:48 +0100 |
commit | 6cb670cb2ce83a50177eaf37656c0b3c07c3ffde (patch) | |
tree | 36525da43408850a46b5c42fbb7f98121326d95a /src/nvim/normal.c | |
parent | ca3e382a4f39c5622fc5e10b784df10b4813fc0e (diff) | |
parent | bea439fe99bb49d116f9f5d288ea13d76fb520f1 (diff) | |
download | rneovim-6cb670cb2ce83a50177eaf37656c0b3c07c3ffde.tar.gz rneovim-6cb670cb2ce83a50177eaf37656c0b3c07c3ffde.tar.bz2 rneovim-6cb670cb2ce83a50177eaf37656c0b3c07c3ffde.zip |
Merge pull request #17216 from clason/vim-8.2.4233
vim-patch:8.2.{4233,4235,4236,4237}: follow-up patches for recording in Select mode
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 76ee9f1f40..28e5d47dbc 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -1013,9 +1013,11 @@ static int normal_execute(VimState *state, int key) // be mapped in Insert mode. Required for ":lmap" to work. int len = ins_char_typebuf(s->c, mod_mask); - // When recording the character will be recorded again, remove the - // previously recording. - ungetchars(len); + // When recording and gotchars() was called the character will be + // recorded again, remove the previous recording. + if (KeyTyped) { + ungetchars(len); + } if (restart_edit != 0) { s->c = 'd'; |