0
0
mirror of https://github.com/vim/vim.git synced 2025-11-16 23:24:03 -05:00

patch 9.1.1781: some functions could be defined static

Problem:  some functions could be defined static
Solution: Change function definitions and make them static
          (Yegappan Lakshmanan)

closes: #18354

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2025-09-21 17:52:42 +00:00
committed by Christian Brabandt
parent 7b973492ae
commit 3a6cf6d53b
9 changed files with 15 additions and 15 deletions

View File

@@ -1057,6 +1057,15 @@ ins_compl_insert_bytes(char_u *p, int len)
compl_ins_end_col = curwin->w_cursor.col;
}
/*
* Get current completion leader length
*/
static size_t
ins_compl_leader_len(void)
{
return compl_leader.string != NULL ? compl_leader.length : compl_orig_text.length;
}
/*
* Checks if the column is within the currently inserted completion text
* column range. If it is, it returns a special highlight attribute.
@@ -1836,15 +1845,6 @@ ins_compl_leader(void)
return compl_leader.string != NULL ? compl_leader.string : compl_orig_text.string;
}
/*
* Get current completion leader length
*/
size_t
ins_compl_leader_len(void)
{
return compl_leader.string != NULL ? compl_leader.length : compl_orig_text.length;
}
/*
* Add any identifiers that match the given pattern "pat" in the list of
* dictionary files "dict_start" to the list of completions.