mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:9.1.1783: ins_compl_leader() too far away from ins_compl_leader_len()
Problem: ins_compl_leader() defined too far away from
ins_compl_leader_len() (after 9.1.1781).
Solution: Move ins_compl_leader() just before ins_compl_leader_len().
Add missing "static" to eval0_simple_funccal() definition.
(zeertzjq).
closes: vim/vim#18364
94c128184f
This commit is contained in:
@@ -1090,6 +1090,12 @@ static void ins_compl_insert_bytes(char *p, int len)
|
||||
compl_ins_end_col = curwin->w_cursor.col;
|
||||
}
|
||||
|
||||
/// Get current completion leader
|
||||
char *ins_compl_leader(void)
|
||||
{
|
||||
return compl_leader.data != NULL ? compl_leader.data : compl_orig_text.data;
|
||||
}
|
||||
|
||||
/// Get current completion leader length
|
||||
static size_t ins_compl_leader_len(void)
|
||||
{
|
||||
@@ -1740,12 +1746,6 @@ bool compl_match_curr_select(int selected)
|
||||
#define DICT_FIRST (1) ///< use just first element in "dict"
|
||||
#define DICT_EXACT (2) ///< "dict" is the exact name of a file
|
||||
|
||||
/// Get current completion leader
|
||||
char *ins_compl_leader(void)
|
||||
{
|
||||
return compl_leader.data != NULL ? compl_leader.data : compl_orig_text.data;
|
||||
}
|
||||
|
||||
/// Add any identifiers that match the given pattern "pat" in the list of
|
||||
/// dictionary files "dict_start" to the list of completions.
|
||||
///
|
||||
|
Reference in New Issue
Block a user