aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-20 20:42:55 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-21 06:24:11 +0800
commit81453579745516316067ba8154eb02e1305114fc (patch)
treee724eda0cf298123b3410d3d96350d845a35d159 /src/nvim/buffer_defs.h
parentbfd6eb4404d7250d1b59fc24f08a9392fba0c043 (diff)
downloadrneovim-81453579745516316067ba8154eb02e1305114fc.tar.gz
rneovim-81453579745516316067ba8154eb02e1305114fc.tar.bz2
rneovim-81453579745516316067ba8154eb02e1305114fc.zip
vim-patch:8.2.4724: current instance of last search pattern not easily spotted
Problem: Current instance of last search pattern not easily spotted. Solution: Add CurSearch highlighting. (closes vim/vim#10133) https://github.com/vim/vim/commit/a43993897aa372159f682df37562f159994dc85c This fixes CurSearch highlight for multiline match. Omit screen redrawing code because Nvim redraws CurSearch differently.
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 375bebc5ac..4917a628ff 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -1018,6 +1018,7 @@ typedef struct {
// match (may continue in next line)
buf_T *buf; // the buffer to search for a match
linenr_T lnum; // the line to search for a match
+ linenr_T lines; // number of lines starting from lnum
int attr; // attributes to be used for a match
int attr_cur; // attributes currently active in win_line()
linenr_T first_lnum; // first lnum to search for multi-line pat