projects
/
vim
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
679d66c
)
patch 8.2.4262: some search tests fail
v8.2.4262
author
Bram Moolenaar
<Bram@vim.org>
Sun, 30 Jan 2022 17:17:41 +0000
(17:17 +0000)
committer
Bram Moolenaar
<Bram@vim.org>
Sun, 30 Jan 2022 17:17:41 +0000
(17:17 +0000)
Problem: Some search tests fail.
Solution: Use a better way to reject searching for the Visual area.
src/regexp.c
patch
|
blob
|
history
src/version.c
patch
|
blob
|
history
diff --git
a/src/regexp.c
b/src/regexp.c
index 95057655533e04dc12262a364e5263083603e46a..29c2d38821abb9bbfa0221ab8c8e6ecf1305d4bc 100644
(file)
--- 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 4946c3ee2e177fdb70b698e526893e5527eacb86..159a90e03bc9ee687b56ba3945de1454d20df4db 100644
(file)
--- a/
src/version.c
+++ b/
src/version.c
@@
-750,6
+750,8
@@
static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4262,
/**/
4261,
/**/