comparison src/proto/textprop.pro @ 25640:78ef12e0ce8c v8.2.3356

patch 8.2.3356: adding many text properties requires a lot of function calls Commit: https://github.com/vim/vim/commit/ccfb7c6758510e0fe5f390149ea14aee6ff4f55e Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Aug 16 21:39:09 2021 +0200 patch 8.2.3356: adding many text properties requires a lot of function calls Problem: Adding many text properties requires a lot of function calls. Solution: Add the prop_add_list() function. (Yegappan Lakshmanan, closes #8751)
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 Aug 2021 21:45:03 +0200
parents d067be761cd7
children 057c26b5c33a
comparison
equal deleted inserted replaced
25639:b5eedbdaca91 25640:78ef12e0ce8c
1 /* textprop.c */ 1 /* textprop.c */
2 int find_prop_type_id(char_u *name, buf_T *buf); 2 int find_prop_type_id(char_u *name, buf_T *buf);
3 void f_prop_add(typval_T *argvars, typval_T *rettv); 3 void f_prop_add(typval_T *argvars, typval_T *rettv);
4 void f_prop_add_list(typval_T *argvars, typval_T *rettv);
4 void prop_add_common(linenr_T start_lnum, colnr_T start_col, dict_T *dict, buf_T *default_buf, typval_T *dict_arg); 5 void prop_add_common(linenr_T start_lnum, colnr_T start_col, dict_T *dict, buf_T *default_buf, typval_T *dict_arg);
5 int get_text_props(buf_T *buf, linenr_T lnum, char_u **props, int will_change); 6 int get_text_props(buf_T *buf, linenr_T lnum, char_u **props, int will_change);
6 int count_props(linenr_T lnum, int only_starting); 7 int count_props(linenr_T lnum, int only_starting);
7 int find_visible_prop(win_T *wp, int type_id, int id, textprop_T *prop, linenr_T *found_lnum); 8 int find_visible_prop(win_T *wp, int type_id, int id, textprop_T *prop, linenr_T *found_lnum);
8 proptype_T *text_prop_type_by_id(buf_T *buf, int id); 9 proptype_T *text_prop_type_by_id(buf_T *buf, int id);