diff options
-rw-r--r-- | src/search.c | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/search.c b/src/search.c index 24b0c4a82..fc7468046 100644 --- a/src/search.c +++ b/src/search.c @@ -2431,12 +2431,10 @@ showmatch(c) /* 'matchpairs' is "x:y,x:y" */ for (p = curbuf->b_p_mps; *p != NUL; ++p) { - if (PTR2CHAR(p) == c #ifdef FEAT_RIGHTLEFT - && (curwin->w_p_rl ^ p_ri) -#endif - ) + if (PTR2CHAR(p) == c && (curwin->w_p_rl ^ p_ri)) break; +#endif p += MB_PTR2LEN(p) + 1; if (PTR2CHAR(p) == c #ifdef FEAT_RIGHTLEFT @@ -2451,7 +2449,7 @@ showmatch(c) if ((lpos = findmatch(NULL, NUL)) == NULL) /* no match, so beep */ vim_beep(); - else if (lpos->lnum >= curwin->w_topline) + else if (lpos->lnum >= curwin->w_topline && lpos->lnum < curwin->w_botline) { if (!curwin->w_p_wrap) getvcol(curwin, lpos, NULL, &vcol, NULL); diff --git a/src/version.c b/src/version.c index 71e10153c..a63e02554 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 829, +/**/ 828, /**/ 827, |