1
0
forked from aniani/vim

patch 8.1.0636: line2byte() gives wrong values with text properties

Problem:    line2byte() gives wrong values with text properties. (Bjorn Linse)
Solution:   Compute byte offsets differently when text properties were added.
            (closes #3718)
This commit is contained in:
Bram Moolenaar
2018-12-25 23:15:46 +01:00
parent e38197d50f
commit b413d2e6a8
6 changed files with 66 additions and 26 deletions

View File

@@ -2411,7 +2411,8 @@ struct file_buffer
dict_T *b_vars; /* internal variables, local to buffer */
#endif
#ifdef FEAT_TEXT_PROP
hashtab_T *b_proptypes; /* text property types local to buffer */
int b_has_textprop; // TRUE when text props were added
hashtab_T *b_proptypes; // text property types local to buffer
#endif
#if defined(FEAT_BEVAL) && defined(FEAT_EVAL)