mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.1.0882: too many strlen() calls in insexpand.c
Problem: too many strlen() calls in insexpand.c Solution: Refactor insexpand.c and reduce number of calls to STRLEN(), fix a warning get_next_filename_completion(), add new function ins_compl_leader_len() (John Marriott) closes: #16095 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
991603cc04
commit
5e6ea92b2c
486
src/insexpand.c
486
src/insexpand.c
File diff suppressed because it is too large
Load Diff
@ -31,6 +31,7 @@ unsigned int get_cot_flags(void);
|
|||||||
int pum_wanted(void);
|
int pum_wanted(void);
|
||||||
void ins_compl_show_pum(void);
|
void ins_compl_show_pum(void);
|
||||||
char_u *ins_compl_leader(void);
|
char_u *ins_compl_leader(void);
|
||||||
|
size_t ins_compl_leader_len(void);
|
||||||
char_u *find_word_start(char_u *ptr);
|
char_u *find_word_start(char_u *ptr);
|
||||||
char_u *find_word_end(char_u *ptr);
|
char_u *find_word_end(char_u *ptr);
|
||||||
void ins_compl_clear(void);
|
void ins_compl_clear(void);
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
882,
|
||||||
/**/
|
/**/
|
||||||
881,
|
881,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user