patch 8.2.4262: some search tests fail v8.2.4262
authorBram Moolenaar <Bram@vim.org>
Sun, 30 Jan 2022 17:17:41 +0000 (17:17 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 30 Jan 2022 17:17:41 +0000 (17:17 +0000)
Problem:    Some search tests fail.
Solution:   Use a better way to reject searching for the Visual area.

src/regexp.c
src/version.c

index 95057655533e04dc12262a364e5263083603e46a..29c2d38821abb9bbfa0221ab8c8e6ecf1305d4bc 100644 (file)
@@ -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)
index 4946c3ee2e177fdb70b698e526893e5527eacb86..159a90e03bc9ee687b56ba3945de1454d20df4db 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4262,
 /**/
     4261,
 /**/