diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-25 18:13:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-25 18:13:54 +0100 |
commit | 7f9969c559b51446632ac7e8f76cde07e7d0078d (patch) | |
tree | 77868549433487dbadb8833a1b6a63d522adaa72 /src/proto | |
parent | b529cfbd04c02e31cfa88f2c8d88b5ff532d4f7d (diff) |
patch 9.0.0067: cannot show virtual textv9.0.0067
Problem: Cannot show virtual text.
Solution: Initial changes for virtual text support, using text properties.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/charset.pro | 10 | ||||
-rw-r--r-- | src/proto/textprop.pro | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/proto/charset.pro b/src/proto/charset.pro index df097109c1..97aa71e5c0 100644 --- a/src/proto/charset.pro +++ b/src/proto/charset.pro @@ -17,7 +17,7 @@ int vim_strnsize(char_u *s, int len); int chartabsize(char_u *p, colnr_T col); int linetabsize(char_u *s); int linetabsize_col(int startcol, char_u *s); -int win_linetabsize(win_T *wp, char_u *line, colnr_T len); +int win_linetabsize(win_T *wp, linenr_T lnum, char_u *line, colnr_T len); int vim_isIDc(int c); int vim_isNormalIDc(int c); int vim_iswordc(int c); @@ -28,9 +28,11 @@ int vim_isfilec(int c); int vim_isfilec_or_wc(int c); int vim_isprintc(int c); int vim_isprintc_strict(int c); -int lbr_chartabsize(char_u *line, unsigned char *s, colnr_T col); -int lbr_chartabsize_adv(char_u *line, char_u **s, colnr_T col); -int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *headp); +void init_chartabsize_arg(chartabsize_T *cts, win_T *wp, linenr_T lnum, colnr_T col, char_u *line, char_u *ptr); +void clear_chartabsize_arg(chartabsize_T *cts); +int lbr_chartabsize(chartabsize_T *cts); +int lbr_chartabsize_adv(chartabsize_T *cts); +int win_lbr_chartabsize(chartabsize_T *cts, int *headp); void getvcol(win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, colnr_T *end); colnr_T getvcol_nolist(pos_T *posp); void getvvcol(win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, colnr_T *end); diff --git a/src/proto/textprop.pro b/src/proto/textprop.pro index 72a900bfa8..4a6bab3083 100644 --- a/src/proto/textprop.pro +++ b/src/proto/textprop.pro @@ -2,7 +2,7 @@ int find_prop_type_id(char_u *name, buf_T *buf); void f_prop_add(typval_T *argvars, typval_T *rettv); void f_prop_add_list(typval_T *argvars, typval_T *rettv); -void prop_add_common(linenr_T start_lnum, colnr_T start_col, dict_T *dict, buf_T *default_buf, typval_T *dict_arg); +int prop_add_common(linenr_T start_lnum, colnr_T start_col, dict_T *dict, buf_T *default_buf, typval_T *dict_arg); int get_text_props(buf_T *buf, linenr_T lnum, char_u **props, int will_change); int count_props(linenr_T lnum, int only_starting); int find_visible_prop(win_T *wp, int type_id, int id, textprop_T *prop, linenr_T *found_lnum); |