aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/extmark.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-01-18 13:19:36 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2020-09-09 21:22:21 +0200
commitf42aa95fbc7b949213ed204dfd0310e182e7e378 (patch)
tree77fda6bec3601339c0c7b7ef2447950836befe3d /src/nvim/extmark.c
parenta621c45ba07e3608aad714403178e3aaded15df7 (diff)
downloadrneovim-f42aa95fbc7b949213ed204dfd0310e182e7e378.tar.gz
rneovim-f42aa95fbc7b949213ed204dfd0310e182e7e378.tar.bz2
rneovim-f42aa95fbc7b949213ed204dfd0310e182e7e378.zip
extmark: separate extmark_splice_cols for column-only change
as the byte logic will be the same for all of these
Diffstat (limited to 'src/nvim/extmark.c')
-rw-r--r--src/nvim/extmark.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c
index c9b1c72828..91ca525533 100644
--- a/src/nvim/extmark.c
+++ b/src/nvim/extmark.c
@@ -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,