aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/regexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index e81df736a4..e58a8fa06a 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -1095,7 +1095,7 @@ static bool 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;
}