From 7d2879694e67d4392a46377aafdf6445c44f18bc Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Fri, 24 Apr 2020 18:33:19 +0200 Subject: extmark: introduce extmark_splice_cols to ease up notations. --- src/nvim/extmark.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/nvim/extmark.c') diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c index 38d111f2aa..1457a1172d 100644 --- a/src/nvim/extmark.c +++ b/src/nvim/extmark.c @@ -578,6 +578,15 @@ 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, + ExtmarkOp undo) +{ + extmark_splice(buf, start_row, start_col, + 0, old_col, + 0, new_col, undo); +} void extmark_move_region(buf_T *buf, int start_row, colnr_T start_col, -- cgit