changeset 27468:678ea52c15a0 v8.2.4262

patch 8.2.4262: some search tests fail Commit: https://github.com/vim/vim/commit/44a4d947bbc2c5ddb2908346a7c61ef93b59a3ca Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 30 17:17:41 2022 +0000 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Jan 2022 18:30:03 +0100
parents 853e9023ca7f
children 278bf9ba58b8
files src/regexp.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4262,
+/**/
     4261,
 /**/
     4260,