fix(bytetrack): send correct events when opening lines

a bit of test cleanup

ärrår

feeel

SPLIT

fix: sned correct updates on <CR>
This commit is contained in:
Thomas Vigouroux
2020-09-10 18:52:56 +02:00
parent 5581ac88c6
commit f0e258cf85
3 changed files with 88 additions and 14 deletions

View File

@@ -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,