diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-30 17:17:41 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-30 17:17:41 +0000 |
commit | 44a4d947bbc2c5ddb2908346a7c61ef93b59a3ca (patch) | |
tree | 8558fb6f1482967544656a8ff2c1e3a49cda1eb1 | |
parent | 679d66c2d21dfe03d0f89b9a818b0aaebb4c3b87 (diff) |
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.
-rw-r--r-- | src/regexp.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/regexp.c b/src/regexp.c index 9505765553..29c2d38821 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) diff --git a/src/version.c b/src/version.c index 4946c3ee2e..159a90e03b 100644 --- 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, |