extmark: separate extmark_splice_cols for column-only change

as the byte logic will be the same for all of these
This commit is contained in:
Björn Linse
2020-01-18 13:19:36 +01:00
parent a621c45ba0
commit f42aa95fbc
5 changed files with 24 additions and 32 deletions

View File

@@ -366,7 +366,7 @@ void changed_bytes(linenr_T lnum, colnr_T col)
static void inserted_bytes(linenr_T lnum, colnr_T col, int old, int new)
{
if (curbuf_splice_pending == 0) {
extmark_splice(curbuf, (int)lnum-1, col, 0, old, 0, new, kExtmarkUndo);
extmark_splice_cols(curbuf, (int)lnum-1, col, old, new, kExtmarkUndo);
}
changed_bytes(lnum, col);