0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2022-01-30 17:17:41 +00:00
parent 679d66c2d2
commit 44a4d947bb
2 changed files with 3 additions and 1 deletions

View 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)

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4262,
/**/
4261,
/**/