1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2019-05-15 22:45:37 +02:00
parent fe1ade0a78
commit 45dd07f10a
6 changed files with 92 additions and 21 deletions

View File

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