mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
patch 9.1.0472: Inconsistencies between functions for option flags
Problem: Inconsistencies between functions for option flags.
Solution: Consistently use "unsigned int" as return type and rename
get_bkc_value() to get_bkc_flags() (zeertzjq).
closes: #14925
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
2d1d5c6c27
commit
aa925eeb97
@@ -1226,7 +1226,7 @@ ins_compl_build_pum(void)
|
||||
int cur = -1;
|
||||
int lead_len = 0;
|
||||
int max_fuzzy_score = 0;
|
||||
int cur_cot_flags = get_cot_flags();
|
||||
unsigned int cur_cot_flags = get_cot_flags();
|
||||
int compl_no_select = (cur_cot_flags & COT_NOSELECT) != 0;
|
||||
int compl_fuzzy_match = (cur_cot_flags & COT_FUZZY) != 0;
|
||||
|
||||
@@ -2925,7 +2925,7 @@ set_completion(colnr_T startcol, list_T *list)
|
||||
int save_w_wrow = curwin->w_wrow;
|
||||
int save_w_leftcol = curwin->w_leftcol;
|
||||
int flags = CP_ORIGINAL_TEXT;
|
||||
int cur_cot_flags = get_cot_flags();
|
||||
unsigned int cur_cot_flags = get_cot_flags();
|
||||
int compl_longest = (cur_cot_flags & COT_LONGEST) != 0;
|
||||
int compl_no_insert = (cur_cot_flags & COT_NOINSERT) != 0;
|
||||
int compl_no_select = (cur_cot_flags & COT_NOSELECT) != 0;
|
||||
@@ -4126,7 +4126,7 @@ find_next_completion_match(
|
||||
{
|
||||
int found_end = FALSE;
|
||||
compl_T *found_compl = NULL;
|
||||
int cur_cot_flags = get_cot_flags();
|
||||
unsigned int cur_cot_flags = get_cot_flags();
|
||||
int compl_no_select = (cur_cot_flags & COT_NOSELECT) != 0;
|
||||
int compl_fuzzy_match = (cur_cot_flags & COT_FUZZY) != 0;
|
||||
|
||||
@@ -4246,7 +4246,7 @@ ins_compl_next(
|
||||
int advance;
|
||||
int started = compl_started;
|
||||
buf_T *orig_curbuf = curbuf;
|
||||
int cur_cot_flags = get_cot_flags();
|
||||
unsigned int cur_cot_flags = get_cot_flags();
|
||||
int compl_no_insert = (cur_cot_flags & COT_NOINSERT) != 0;
|
||||
int compl_fuzzy_match = (cur_cot_flags & COT_FUZZY) != 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user