mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +00:00
fix: do not save K_EVENT as lastc in Insert mode
I'm also gonna move some other K_EVENT-related tests to vim_spec.lua
This commit is contained in:
@@ -643,7 +643,10 @@ static int insert_check(VimState *state)
|
||||
update_curswant();
|
||||
s->old_topline = curwin->w_topline;
|
||||
s->old_topfill = curwin->w_topfill;
|
||||
s->lastc = s->c; // remember previous char for CTRL-D
|
||||
|
||||
if (s->c != K_EVENT) {
|
||||
s->lastc = s->c; // remember previous char for CTRL-D
|
||||
}
|
||||
|
||||
// After using CTRL-G U the next cursor key will not break undo.
|
||||
if (dont_sync_undo == kNone) {
|
||||
|
Reference in New Issue
Block a user