From: Bram Moolenaar Date: Sun, 30 Jan 2022 17:17:41 +0000 (+0000) Subject: patch 8.2.4262: some search tests fail X-Git-Tag: v8.2.4262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44a4d947bbc2c5ddb2908346a7c61ef93b59a3ca;p=vim patch 8.2.4262: some search tests fail Problem: Some search tests fail. Solution: Use a better way to reject searching for the Visual area. --- diff --git a/src/regexp.c b/src/regexp.c index 950576555..29c2d3882 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -1268,7 +1268,7 @@ reg_match_visual(void) colnr_T curswant; // Check if the buffer is the current buffer and not using a string. - if (rex.reg_buf != curbuf || VIsual.lnum == 0 || rex.reg_maxline == 0) + if (rex.reg_buf != curbuf || VIsual.lnum == 0 || !REG_MULTI) return FALSE; if (VIsual_active) diff --git a/src/version.c b/src/version.c index 4946c3ee2..159a90e03 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4262, /**/ 4261, /**/