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

@@ -552,6 +552,7 @@ void extmark_adjust(buf_T *buf,
}
}
void extmark_splice(buf_T *buf,
int start_row, colnr_T start_col,
int oldextent_row, colnr_T oldextent_col,
@@ -631,12 +632,10 @@ void extmark_splice(buf_T *buf,
void extmark_splice_cols(buf_T *buf,
int start_row, colnr_T start_col,
colnr_T old_col, colnr_T new_col,
colnr_T oldextent, colnr_T newextent,
ExtmarkOp undo)
{
extmark_splice(buf, start_row, start_col,
0, old_col,
0, new_col, undo);
extmark_splice(buf, start_row, start_col, 0, oldextent, 0, newextent, undo);
}
void extmark_move_region(buf_T *buf,