comparison src/regexp.c @ 27468:678ea52c15a0 v8.2.4262

patch 8.2.4262: some search tests fail Commit: https://github.com/vim/vim/commit/44a4d947bbc2c5ddb2908346a7c61ef93b59a3ca Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 30 17:17:41 2022 +0000 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Jan 2022 18:30:03 +0100
parents 8ed815f061af
children fb4c30606b4a
comparison
equal deleted inserted replaced
27467:853e9023ca7f 27468:678ea52c15a0
1266 colnr_T start2, end2; 1266 colnr_T start2, end2;
1267 colnr_T cols; 1267 colnr_T cols;
1268 colnr_T curswant; 1268 colnr_T curswant;
1269 1269
1270 // Check if the buffer is the current buffer and not using a string. 1270 // Check if the buffer is the current buffer and not using a string.
1271 if (rex.reg_buf != curbuf || VIsual.lnum == 0 || rex.reg_maxline == 0) 1271 if (rex.reg_buf != curbuf || VIsual.lnum == 0 || !REG_MULTI)
1272 return FALSE; 1272 return FALSE;
1273 1273
1274 if (VIsual_active) 1274 if (VIsual_active)
1275 { 1275 {
1276 if (LT_POS(VIsual, wp->w_cursor)) 1276 if (LT_POS(VIsual, wp->w_cursor))