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)
diff --git a/src/ex_getln.c b/src/ex_getln.c
index b1b9961..efeae94 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -713,6 +713,7 @@
save_viewstate(&is_state->old_viewstate);
update_screen(NOT_VALID);
redrawcmdline();
+ curwin->w_cursor = is_state->match_end;
}
else
vim_beep(BO_ERROR);