aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-25 11:13:18 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-05-25 13:51:30 +0200
commit51a59a0f622256595e1cc8f6dcd2c2791cbad76d (patch)
tree7393e5133dac397062df2cf1f77796665a4c6890 /src/nvim/edit.c
parentc4f56c4134d806c40fc841ca1af2c0020b447140 (diff)
downloadrneovim-51a59a0f622256595e1cc8f6dcd2c2791cbad76d.tar.gz
rneovim-51a59a0f622256595e1cc8f6dcd2c2791cbad76d.tar.bz2
rneovim-51a59a0f622256595e1cc8f6dcd2c2791cbad76d.zip
lint
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 5fbe2c2eb6..a8dd115074 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -2586,15 +2586,16 @@ void ins_compl_show_pum(void)
// Need to build the popup menu list.
compl_match_arraysize = 0;
compl = compl_first_match;
- /*
- * If it's user complete function and refresh_always,
- * not use "compl_leader" as prefix filter.
- */
- if (ins_compl_need_restart()){
+ //
+ // If it's user complete function and refresh_always,
+ // do not use "compl_leader" as prefix filter.
+ //
+ if (ins_compl_need_restart()) {
XFREE_CLEAR(compl_leader);
}
- if (compl_leader != NULL)
+ if (compl_leader != NULL) {
lead_len = (int)STRLEN(compl_leader);
+ }
do {
if ((compl->cp_flags & ORIGINAL_TEXT) == 0
&& (compl_leader == NULL
@@ -2993,7 +2994,7 @@ static void ins_compl_clear(void)
XFREE_CLEAR(compl_leader);
edit_submode_extra = NULL;
XFREE_CLEAR(compl_orig_text);
- compl_enter_selects = FALSE;
+ compl_enter_selects = false;
// clear v:completed_item
set_vim_var_dict(VV_COMPLETED_ITEM, tv_dict_alloc());
}