mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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)
This commit is contained in:
@@ -1814,6 +1814,12 @@ op_change(oparg_T *oap)
|
||||
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();
|
||||
|
Reference in New Issue
Block a user