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

@@ -1744,8 +1744,7 @@ static void foldDelMarker(
STRCPY(newline + (p - line), p + len);
ml_replace_buf(buf, lnum, newline, false);
extmark_splice_cols(buf, (int)lnum-1, (int)(p - line),
(int)len,
0, kExtmarkUndo);
(int)len, 0, kExtmarkUndo);
}
break;
}