[Monodevelop-devel] [PATCH] Fix bug on change actions where cursor was left in replace.

Matt Enright awickedshimmy at gmail.com
Fri Jul 10 05:26:49 EDT 2009


---
 .../Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs   |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs
index cd4bea6..b5eeda0 100644
--- a/main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs
+++ b/main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs
@@ -432,6 +432,7 @@ namespace Mono.TextEditor.Vi
 				if (action != null) {
 					RunActions (action, ClipboardActions.Cut);
 					Reset ("-- INSERT --");
+					Caret.Mode = CaretMode.Insert;
 					state = State.Insert;
 				} else {
 					Reset ("Unrecognised motion");
-- 
1.6.3.3.467.g98a79



More information about the Monodevelop-devel-list mailing list