neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 742d95a6294e79e35d3227f749ad2dd6558d62b2
parent f6caa35e6576dc97a70a31e1919a320d67f169ca
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat,  3 Dec 2022 21:13:44 +0800

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 <Bram@vim.org>

Diffstat:
Msrc/nvim/regexp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }