From aa925eeb97bd294d4a5253a3194949a37cbc8365 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 9 Jun 2024 18:24:05 +0200 Subject: 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 Signed-off-by: Christian Brabandt --- src/insexpand.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/insexpand.c') diff --git a/src/insexpand.c b/src/insexpand.c index 7066be8f38..19a4a21737 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -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; -- cgit v1.2.3