diff src/ex_getln.c @ 17411:9c4ddc78df74 v8.1.1704

patch 8.1.1704: C-R C-W does not work after C-G when using 'incsearch' commit https://github.com/vim/vim/commit/69a5b867940d25f68a782de5c1165d65b51fcafa Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 16 21:38:51 2019 +0200 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 https://github.com/vim/vim/issues/4664)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Jul 2019 21:45:05 +0200
parents 81705f4d9e03
children e43f0c0c491c
line wrap: on
line diff
--- 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);