diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-04-16 12:04:37 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-16 12:04:37 +0100 |
commit | 693ccd11606b59eb0f81c6c1948679e61ada4022 (patch) | |
tree | ae4dd7c16456840fb3dca1b590340cf61d7fd930 /src/structs.h | |
parent | 3b470ae88f034d3741832ab1cc51a5bb8edaf4c6 (diff) | |
download | vim-git-693ccd11606b59eb0f81c6c1948679e61ada4022.tar.gz |
patch 8.2.4759: CurSearch highlight does not work for multi-line matchv8.2.4759
Problem: CurSearch highlight does not work for multi-line match.
Solution: Check cursor position before adjusting columns. (closes #10133)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index 176a86c1a..b77fa3488 100644 --- a/src/structs.h +++ b/src/structs.h @@ -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 |