mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user