diff options
author | Aufar Gilbran <aufargilbran@gmail.com> | 2020-08-19 00:48:03 +0800 |
---|---|---|
committer | Aufar Gilbran <aufargilbran@gmail.com> | 2020-09-11 10:33:20 +0800 |
commit | 68f6abef1697d6879b76b515b1b2f67fa59dad1a (patch) | |
tree | 34964381b9d43d8fe460a2d95b6a25670f552179 /src/nvim/ex_getln.c | |
parent | b24dabf266cb3c271f706450abb3d55d82981d38 (diff) | |
download | rneovim-68f6abef1697d6879b76b515b1b2f67fa59dad1a.tar.gz rneovim-68f6abef1697d6879b76b515b1b2f67fa59dad1a.tar.bz2 rneovim-68f6abef1697d6879b76b515b1b2f67fa59dad1a.zip |
vim-patch:8.1.0284: 'cursorline' highlighting wrong with 'incsearch'
Problem: 'cursorline' highlighting wrong with 'incsearch'.
Solution: Move the cursor back if the match is outside the range.
https://github.com/vim/vim/commit/2f6a346a4cd2d5bdd6dc9b3209ebce7b6340221d
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 2e10fbff91..c3e40c95a8 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -427,6 +427,7 @@ static void may_do_incsearch_highlighting(int firstc, long count, || curwin->w_cursor.lnum > search_last_line) { // match outside of address range i = 0; + curwin->w_cursor = s->search_start; } // if interrupted while searching, behave like it failed |