patch 8.2.4957: text properties in a wrong position after a block change
Problem: Text properties in a wrong position after a block change.
Solution: Adjust the properties columns. (closes #10427)
diff --git a/src/ops.c b/src/ops.c
index b11cbf5..5b4c295 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -1814,6 +1814,12 @@
oldp += bd.textcol;
STRMOVE(newp + offset, oldp);
ml_replace(linenr, newp, FALSE);
+#ifdef FEAT_PROP_POPUP
+ // Shift the properties for linenr as edit() would do.
+ if (curbuf->b_has_textprop)
+ adjust_prop_columns(linenr, bd.textcol,
+ vpos.coladd + ins_len, 0);
+#endif
}
}
check_cursor();