comparison src/structs.h @ 15255:19e79a1ed6b6 v8.1.0636

patch 8.1.0636: line2byte() gives wrong values with text properties commit https://github.com/vim/vim/commit/b413d2e6a8cc7b1611a41bfa9462b986393ca5fe Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 25 23:15:46 2018 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 25 Dec 2018 23:30:07 +0100
parents 336728a577f5
children b42b47c0bb80
comparison
equal deleted inserted replaced
15254:7790044a7348 15255:19e79a1ed6b6
2409 #ifdef FEAT_EVAL 2409 #ifdef FEAT_EVAL
2410 dictitem_T b_bufvar; /* variable for "b:" Dictionary */ 2410 dictitem_T b_bufvar; /* variable for "b:" Dictionary */
2411 dict_T *b_vars; /* internal variables, local to buffer */ 2411 dict_T *b_vars; /* internal variables, local to buffer */
2412 #endif 2412 #endif
2413 #ifdef FEAT_TEXT_PROP 2413 #ifdef FEAT_TEXT_PROP
2414 hashtab_T *b_proptypes; /* text property types local to buffer */ 2414 int b_has_textprop; // TRUE when text props were added
2415 hashtab_T *b_proptypes; // text property types local to buffer
2415 #endif 2416 #endif
2416 2417
2417 #if defined(FEAT_BEVAL) && defined(FEAT_EVAL) 2418 #if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
2418 char_u *b_p_bexpr; /* 'balloonexpr' local value */ 2419 char_u *b_p_bexpr; /* 'balloonexpr' local value */
2419 long_u b_p_bexpr_flags;/* flags for 'balloonexpr' */ 2420 long_u b_p_bexpr_flags;/* flags for 'balloonexpr' */