diff src/edit.c @ 33140:9c4ee9389bb4 v9.0.1852

patch 9.0.1852: i_CTRL-O does not reset Select Mode Commit: https://github.com/vim/vim/commit/d69aecf141ff05a645d02f39f1cbf6381ed7d0c0 Author: pierreganty <pierreganty@gmail.com> Date: Sat Sep 2 21:59:52 2023 +0200 patch 9.0.1852: i_CTRL-O does not reset Select Mode Problem: i_CTRL-O does not reset Select Mode Solution: Reset select mode on CTRL-O in insert mode closes: #13001 closes: #12115 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Sep 2023 22:15:03 +0200
parents 75c283beb74f
children 830a5f8053cb
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -3859,6 +3859,7 @@ ins_insert(int replaceState)
     static void
 ins_ctrl_o(void)
 {
+    restart_VIsual_select = 0;
     if (State & VREPLACE_FLAG)
 	restart_edit = 'V';
     else if (State & REPLACE_FLAG)