Mercurial > vim
comparison src/proto/textprop.pro @ 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 | 9df130fd5e0d |
children | 18c20ceee4b5 |
comparison
equal
deleted
inserted
replaced
15254:7790044a7348 | 15255:19e79a1ed6b6 |
---|---|
1 /* textprop.c */ | 1 /* textprop.c */ |
2 void f_prop_add(typval_T *argvars, typval_T *rettv); | 2 void f_prop_add(typval_T *argvars, typval_T *rettv); |
3 int has_any_text_properties(buf_T *buf); | |
4 int get_text_props(buf_T *buf, linenr_T lnum, char_u **props, int will_change); | 3 int get_text_props(buf_T *buf, linenr_T lnum, char_u **props, int will_change); |
5 proptype_T *text_prop_type_by_id(buf_T *buf, int id); | 4 proptype_T *text_prop_type_by_id(buf_T *buf, int id); |
6 void f_prop_clear(typval_T *argvars, typval_T *rettv); | 5 void f_prop_clear(typval_T *argvars, typval_T *rettv); |
7 void f_prop_list(typval_T *argvars, typval_T *rettv); | 6 void f_prop_list(typval_T *argvars, typval_T *rettv); |
8 void f_prop_remove(typval_T *argvars, typval_T *rettv); | 7 void f_prop_remove(typval_T *argvars, typval_T *rettv); |