aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-03-08 13:21:11 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-03-08 13:21:11 +0100
commit4352d41db0d93ab9266c64be48eda872cb5ea589 (patch)
treea10aa3db77c6db9c7c809200569a9bdd15119f92 /src/nvim/eval.c
parent0355c1ed9c481d4ad3bf24887e0af869834e1b40 (diff)
parent96e2c3945f13453070894c70c74e4da29d421dab (diff)
downloadrneovim-4352d41db0d93ab9266c64be48eda872cb5ea589.tar.gz
rneovim-4352d41db0d93ab9266c64be48eda872cb5ea589.tar.bz2
rneovim-4352d41db0d93ab9266c64be48eda872cb5ea589.zip
Merge #9662 'vim-patch:8.0.{0643-0646}'
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 7b6990e077..57777f049a 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -13806,7 +13806,7 @@ static int search_cmn(typval_T *argvars, pos_T *match_pos, int *flagsp)
pos = save_cursor = curwin->w_cursor;
subpatnum = searchit(curwin, curbuf, &pos, dir, (char_u *)pat, 1,
- options, RE_SEARCH, (linenr_T)lnum_stop, &tm);
+ options, RE_SEARCH, (linenr_T)lnum_stop, &tm, NULL);
if (subpatnum != FAIL) {
if (flags & SP_SUBPAT)
retval = subpatnum;
@@ -14308,10 +14308,11 @@ do_searchpair(
pat = pat3;
for (;; ) {
n = searchit(curwin, curbuf, &pos, dir, pat, 1L,
- options, RE_SEARCH, lnum_stop, &tm);
- if (n == FAIL || (firstpos.lnum != 0 && equalpos(pos, firstpos)))
- /* didn't find it or found the first match again: FAIL */
+ options, RE_SEARCH, lnum_stop, &tm, NULL);
+ if (n == FAIL || (firstpos.lnum != 0 && equalpos(pos, firstpos))) {
+ // didn't find it or found the first match again: FAIL
break;
+ }
if (firstpos.lnum == 0)
firstpos = pos;