aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-03 21:13:44 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-12-03 21:21:47 +0800
commit742d95a6294e79e35d3227f749ad2dd6558d62b2 (patch)
treef5201ffa8027b9f083be026f4997d11c5db1ce60
parentf6caa35e6576dc97a70a31e1919a320d67f169ca (diff)
downloadrneovim-742d95a6294e79e35d3227f749ad2dd6558d62b2.tar.gz
rneovim-742d95a6294e79e35d3227f749ad2dd6558d62b2.tar.bz2
rneovim-742d95a6294e79e35d3227f749ad2dd6558d62b2.zip
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>
-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;
}