diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-25 23:15:46 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-25 23:15:46 +0100 |
commit | b413d2e6a8cc7b1611a41bfa9462b986393ca5fe (patch) | |
tree | e232491163a792882917c0fb1888d6de9bf9cce8 /src/structs.h | |
parent | e38197d50f7068c4b68043792d283da98e526ec3 (diff) | |
download | vim-git-b413d2e6a8cc7b1611a41bfa9462b986393ca5fe.tar.gz |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index e4311eda4..2f2795a12 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) |