From 45dd07f10af9bea86f8df77e92788209e209fdab Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 15 May 2019 22:45:37 +0200 Subject: patch 8.1.1333: text properties don't always move after changes Problem: Text properties don't always move after changes. Solution: Update properties before reporting changes to listeners. Move text property when splitting a line. --- src/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_cmds.c') diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 8da5dfd7ca..b99e54bce3 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -5728,7 +5728,7 @@ do_sub(exarg_T *eap) last_line = lnum + 1; } #ifdef FEAT_TEXT_PROP - adjust_props_for_split(lnum, plen, 1); + adjust_props_for_split(lnum + 1, lnum, plen, 1); #endif // all line numbers increase ++sub_firstlnum; -- cgit v1.2.3