From 742d95a6294e79e35d3227f749ad2dd6558d62b2 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 3 Dec 2022 21:13:44 +0800 Subject: vim-patch:8.2.4262: some search tests fail Problem: Some search tests fail. Solution: Use a better way to reject searching for the Visual area. https://github.com/vim/vim/commit/44a4d947bbc2c5ddb2908346a7c61ef93b59a3ca Co-authored-by: Bram Moolenaar --- src/nvim/regexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit