0
0
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:
LemonBoy
2022-05-15 13:08:02 +01:00
committed by Bram Moolenaar
parent 395bd1f6d3
commit b559b302e0
3 changed files with 41 additions and 0 deletions

View File

@@ -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();