# HG changeset patch # User Bram Moolenaar # Date 1643563803 -3600 # Node ID 678ea52c15a008a6b0b8fea721570ba31958cd85 # Parent 853e9023ca7fbe179c520408b4bbba45a7aa00ac patch 8.2.4262: some search tests fail Commit: https://github.com/vim/vim/commit/44a4d947bbc2c5ddb2908346a7c61ef93b59a3ca Author: Bram Moolenaar 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. diff --git a/src/regexp.c b/src/regexp.c --- 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 --- 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,