Mercurial > vim
comparison src/proto/insexpand.pro @ 26944:8dbdd68627bd v8.2.4001
patch 8.2.4001: insert complete code uses global variables
Commit: https://github.com/vim/vim/commit/d94fbfc74a8b8073e7a256c95fa6f39fc527c726
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Jan 4 17:01:44 2022 +0000
patch 8.2.4001: insert complete code uses global variables
Problem: Insert complete code uses global variables.
Solution: Make variables local to the file and use accessor functions.
(Yegappan Lakshmanan, closes #9470)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jan 2022 18:15:03 +0100 |
parents | 13ba00ef7687 |
children | 8b15e4161605 |
comparison
equal
deleted
inserted
replaced
26943:61f686b38df9 | 26944:8dbdd68627bd |
---|---|
15 int ctrl_x_mode_omni(void); | 15 int ctrl_x_mode_omni(void); |
16 int ctrl_x_mode_spell(void); | 16 int ctrl_x_mode_spell(void); |
17 int ctrl_x_mode_line_or_eval(void); | 17 int ctrl_x_mode_line_or_eval(void); |
18 int ctrl_x_mode_not_default(void); | 18 int ctrl_x_mode_not_default(void); |
19 int ctrl_x_mode_not_defined_yet(void); | 19 int ctrl_x_mode_not_defined_yet(void); |
20 int compl_status_adding(void); | |
21 int compl_status_sol(void); | |
22 int compl_status_local(void); | |
23 void compl_status_clear(void); | |
20 int has_compl_option(int dict_opt); | 24 int has_compl_option(int dict_opt); |
21 int vim_is_ctrl_x_key(int c); | 25 int vim_is_ctrl_x_key(int c); |
22 int ins_compl_accept_char(int c); | 26 int ins_compl_accept_char(int c); |
23 int ins_compl_add_infercase(char_u *str_arg, int len, int icase, char_u *fname, int dir, int cont_s_ipos); | 27 int ins_compl_add_infercase(char_u *str_arg, int len, int icase, char_u *fname, int dir, int cont_s_ipos); |
24 int ins_compl_has_shown_match(void); | 28 int ins_compl_has_shown_match(void); |
33 int ins_compl_used_match(void); | 37 int ins_compl_used_match(void); |
34 void ins_compl_init_get_longest(void); | 38 void ins_compl_init_get_longest(void); |
35 int ins_compl_interrupted(void); | 39 int ins_compl_interrupted(void); |
36 int ins_compl_enter_selects(void); | 40 int ins_compl_enter_selects(void); |
37 colnr_T ins_compl_col(void); | 41 colnr_T ins_compl_col(void); |
42 int ins_compl_len(void); | |
38 int ins_compl_bs(void); | 43 int ins_compl_bs(void); |
39 void ins_compl_addleader(int c); | 44 void ins_compl_addleader(int c); |
40 void ins_compl_addfrommatch(void); | 45 void ins_compl_addfrommatch(void); |
41 int ins_compl_prep(int c); | 46 int ins_compl_prep(int c); |
42 int set_completefunc_option(void); | 47 int set_completefunc_option(void); |
43 void set_buflocal_cfu_callback(buf_T *buf); | 48 void set_buflocal_cfu_callback(buf_T *buf); |
44 int set_omnifunc_option(void); | 49 int set_omnifunc_option(void); |
45 void set_buflocal_ofu_callback(buf_T *buf); | 50 void set_buflocal_ofu_callback(buf_T *buf); |
46 int set_thesaurusfunc_option(void); | 51 int set_thesaurusfunc_option(void); |
47 int set_ref_in_insexpand_funcs(int copyID); | 52 int set_ref_in_insexpand_funcs(int copyID); |
48 callback_T *get_insert_callback(int type); | |
49 void f_complete(typval_T *argvars, typval_T *rettv); | 53 void f_complete(typval_T *argvars, typval_T *rettv); |
50 void f_complete_add(typval_T *argvars, typval_T *rettv); | 54 void f_complete_add(typval_T *argvars, typval_T *rettv); |
51 void f_complete_check(typval_T *argvars, typval_T *rettv); | 55 void f_complete_check(typval_T *argvars, typval_T *rettv); |
52 void f_complete_info(typval_T *argvars, typval_T *rettv); | 56 void f_complete_info(typval_T *argvars, typval_T *rettv); |
53 void ins_compl_delete(void); | 57 void ins_compl_delete(void); |