From 69a5b867940d25f68a782de5c1165d65b51fcafa Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 16 Jul 2019 21:38:51 +0200 Subject: patch 8.1.1704: C-R C-W does not work after C-G when using 'incsearch' Problem: C-R C-W does not work after C-G when using 'incsearch'. Solution: Put cursor at end of the match. (Yasuhiro Matsumoto, closes #4664) --- src/ex_getln.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ex_getln.c') diff --git a/src/ex_getln.c b/src/ex_getln.c index b1b996183..efeae94ed 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -713,6 +713,7 @@ may_adjust_incsearch_highlighting( save_viewstate(&is_state->old_viewstate); update_screen(NOT_VALID); redrawcmdline(); + curwin->w_cursor = is_state->match_end; } else vim_beep(BO_ERROR); -- cgit v1.2.1