aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-11 19:30:08 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-11 19:30:08 -0400
commit8ad46a25cb8f774db378f29b0e4c43bce524b76e (patch)
treeb0d0d639f401d0c408301916a149c4538ed7cea4 /src
parent6ad8294d5cb3aa934c524141a5f3b86c769becfc (diff)
downloadrneovim-8ad46a25cb8f774db378f29b0e4c43bce524b76e.tar.gz
rneovim-8ad46a25cb8f774db378f29b0e4c43bce524b76e.tar.bz2
rneovim-8ad46a25cb8f774db378f29b0e4c43bce524b76e.zip
eval: match in find_some_match() is bool
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 8db48062e9..22cb544f54 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -12227,7 +12227,7 @@ static void find_some_match(typval_T *const argvars, typval_T *const rettv,
long start = 0;
long nth = 1;
colnr_T startcol = 0;
- int match = 0;
+ bool match = false;
list_T *l = NULL;
listitem_T *li = NULL;
long idx = 0;
@@ -12325,7 +12325,7 @@ static void find_some_match(typval_T *const argvars, typval_T *const rettv,
for (;; ) {
if (l != NULL) {
if (li == NULL) {
- match = FALSE;
+ match = false;
break;
}
xfree(tofree);
@@ -12351,7 +12351,7 @@ static void find_some_match(typval_T *const argvars, typval_T *const rettv,
startcol = (colnr_T)(regmatch.startp[0]
+ (*mb_ptr2len)(regmatch.startp[0]) - str);
if (startcol > (colnr_T)len || str + startcol <= regmatch.startp[0]) {
- match = FALSE;
+ match = false;
break;
}
}