aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c1
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