0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4759: CurSearch highlight does not work for multi-line match

Problem:    CurSearch highlight does not work for multi-line match.
Solution:   Check cursor position before adjusting columns. (closes #10133)
This commit is contained in:
Bram Moolenaar
2022-04-16 12:04:37 +01:00
parent 3b470ae88f
commit 693ccd1160
9 changed files with 66 additions and 9 deletions

View File

@@ -3337,8 +3337,10 @@ typedef struct
linenr_T first_lnum; // first lnum to search for multi-line pat
colnr_T startcol; // in win_line() points to char where HL starts
colnr_T endcol; // in win_line() points to char where HL ends
int is_addpos; // position specified directly by
char is_addpos; // position specified directly by
// matchaddpos(). TRUE/FALSE
char has_cursor; // TRUE if the cursor is inside the match, used for
// CurSearch
#ifdef FEAT_RELTIME
proftime_T tm; // for a time limit
#endif