summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-25 23:15:46 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-25 23:15:46 +0100
commitb413d2e6a8cc7b1611a41bfa9462b986393ca5fe (patch)
treee232491163a792882917c0fb1888d6de9bf9cce8 /src/structs.h
parente38197d50f7068c4b68043792d283da98e526ec3 (diff)
patch 8.1.0636: line2byte() gives wrong values with text propertiesv8.1.0636
Problem: line2byte() gives wrong values with text properties. (Bjorn Linse) Solution: Compute byte offsets differently when text properties were added. (closes #3718)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h
index e4311eda41..2f2795a128 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -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)