aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-09-10 18:52:56 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-11 14:38:58 +0200
commitf0e258cf8569b07153ed6beb1d31455e4de142f4 (patch)
tree8eee3d401a654d15ac7b0500534d24dc36b3c5b6 /src
parent5581ac88c60b0a3f7595088b30a8621f280b5e4c (diff)
downloadrneovim-f0e258cf8569b07153ed6beb1d31455e4de142f4.tar.gz
rneovim-f0e258cf8569b07153ed6beb1d31455e4de142f4.tar.bz2
rneovim-f0e258cf8569b07153ed6beb1d31455e4de142f4.zip
fix(bytetrack): send correct events when opening lines
a bit of test cleanup ärrår feeel SPLIT fix: sned correct updates on <CR>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/change.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index 5e1ec616f6..b8bc08b747 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -1677,6 +1677,9 @@ int open_line(
truncate_spaces(saved_line);
}
ml_replace(curwin->w_cursor.lnum, saved_line, false);
+ extmark_splice_cols(
+ curbuf, (int)curwin->w_cursor.lnum,
+ 0, curwin->w_cursor.col, (int)STRLEN(saved_line), kExtmarkUndo);
saved_line = NULL;
if (did_append) {
changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col,