summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-30 17:17:41 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-30 17:17:41 +0000
commit44a4d947bbc2c5ddb2908346a7c61ef93b59a3ca (patch)
tree8558fb6f1482967544656a8ff2c1e3a49cda1eb1 /src/regexp.c
parent679d66c2d21dfe03d0f89b9a818b0aaebb4c3b87 (diff)
downloadvim-git-44a4d947bbc2c5ddb2908346a7c61ef93b59a3ca.tar.gz
patch 8.2.4262: some search tests failv8.2.4262
Problem: Some search tests fail. Solution: Use a better way to reject searching for the Visual area.
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c2
1 files changed, 1 insertions, 1 deletions
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)