diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-21 19:59:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-21 20:19:58 +0800 |
commit | 4b19f94c2800b6ab89db57919d35c9696f48cef7 (patch) | |
tree | 42fa6fe12cd07542605c96c595f75dbc65314975 /src/nvim/buffer_defs.h | |
parent | e6dec30332f2538ae45d58e6bb674c8a28422fe9 (diff) | |
download | rneovim-4b19f94c2800b6ab89db57919d35c9696f48cef7.tar.gz rneovim-4b19f94c2800b6ab89db57919d35c9696f48cef7.tar.bz2 rneovim-4b19f94c2800b6ab89db57919d35c9696f48cef7.zip |
vim-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 vim/vim#10133)
https://github.com/vim/vim/commit/693ccd11606b59eb0f81c6c1948679e61ada4022
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index baa0d1f102..c16a9c0282 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -1027,6 +1027,7 @@ typedef struct { colnr_T startcol; // in win_line() points to char where HL starts colnr_T endcol; // in win_line() points to char where HL ends bool is_addpos; // position specified directly by matchaddpos() + bool has_cursor; // true if the cursor is inside the match, used for CurSearch proftime_T tm; // for a time limit } match_T; |