aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorAndrej Zieger <jerdna-regeiz@users.noreply.github.com>2019-05-26 17:06:50 +0200
committerAndrej Zieger <jerdna-regeiz@users.noreply.github.com>2019-05-26 19:32:32 +0200
commit80f40f0203f5af167f8c77bf6b9f22a4d1abd6da (patch)
tree3fd67d3bca8a4dfb144ca27cf68c117050e28073 /src/nvim/edit.c
parent0b9e57aca1ec12f35c2a2531be9769eff076c6b2 (diff)
downloadrneovim-80f40f0203f5af167f8c77bf6b9f22a4d1abd6da.tar.gz
rneovim-80f40f0203f5af167f8c77bf6b9f22a4d1abd6da.tar.bz2
rneovim-80f40f0203f5af167f8c77bf6b9f22a4d1abd6da.zip
lint
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index a8dd115074..bfd63aab7a 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -179,9 +179,9 @@ static int compl_no_insert = FALSE; /* FALSE: select & insert
static int compl_no_select = FALSE; /* FALSE: select & insert
TRUE: noselect */
-static int compl_used_match; /* Selected one of the matches. When
- FALSE the match was edited or using
- the longest common string. */
+static int compl_used_match; // Selected one of the matches. When
+ // FALSE the match was edited or using
+ // the longest common string.
static int compl_was_interrupted = FALSE; /* didn't finish finding
completions. */
@@ -2599,8 +2599,9 @@ void ins_compl_show_pum(void)
do {
if ((compl->cp_flags & ORIGINAL_TEXT) == 0
&& (compl_leader == NULL
- || ins_compl_equal(compl, compl_leader, lead_len)))
- ++compl_match_arraysize;
+ || ins_compl_equal(compl, compl_leader, lead_len))) {
+ compl_match_arraysize++;
+ }
compl = compl->cp_next;
} while (compl != NULL && compl != compl_first_match);
if (compl_match_arraysize == 0)