aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mark_extended.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-11-23 22:06:43 +0100
committerGitHub <noreply@github.com>2019-11-23 22:06:43 +0100
commit61d2a12743bcefbdd661b446b0b0fea7a1f77b17 (patch)
tree9b49db7bd3bc7163ad9b0a49828cea4b774f3e0d /src/nvim/mark_extended.c
parentd5f14b8372b3c8d441187eea659156534cb4c9ba (diff)
parent7d5988feeee275f0ae25e753dcb1d2e1954cd4ac (diff)
downloadrneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.tar.gz
rneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.tar.bz2
rneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.zip
Merge pull request #11382 from bfredl/extmark_bufhl
use extmark adjustment for bufhl. use vim code for within-line adjustments.
Diffstat (limited to 'src/nvim/mark_extended.c')
-rw-r--r--src/nvim/mark_extended.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/mark_extended.c b/src/nvim/mark_extended.c
index 01745f484d..91c2f919ce 100644
--- a/src/nvim/mark_extended.c
+++ b/src/nvim/mark_extended.c
@@ -910,6 +910,9 @@ void extmark_col_adjust(buf_T *buf, linenr_T lnum,
bool marks_moved = extmark_col_adjust_impl(buf, lnum, mincol, lnum_amount,
false, col_amount);
+ marks_moved |= bufhl_mark_col_adjust(buf, lnum, mincol,
+ lnum_amount, col_amount);
+
if (undo == kExtmarkUndo && marks_moved) {
u_extmark_col_adjust(buf, lnum, mincol, lnum_amount, col_amount);
}
@@ -938,6 +941,7 @@ void extmark_col_adjust_delete(buf_T *buf, linenr_T lnum,
marks_moved = extmark_col_adjust_impl(buf, lnum, mincol, 0,
true, (long)endcol);
+ marks_moved |= bufhl_mark_col_adjust(buf, lnum, endcol, 0, mincol-(endcol+1));
// Deletes at the end of the line have different behaviour than the normal
// case when deleted.
// Cleanup any marks that are floating beyond the end of line.