summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/regexp.c2
-rw-r--r--src/version.c2
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,