Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/MiscActions.cs')
-rw-r--r--main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/MiscActions.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/MiscActions.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/MiscActions.cs
index a63d9a1073..6a34f3f478 100644
--- a/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/MiscActions.cs
+++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/MiscActions.cs
@@ -243,8 +243,14 @@ namespace Mono.TextEditor
return;
using (var undo = data.OpenUndoGroup ()) {
- if (data.IsSomethingSelected)
+ if (data.IsSomethingSelected) {
+ var end = data.MainSelection.End;
data.DeleteSelectedText ();
+ if (end.Column == 1) {
+ CaretMoveActions.InternalCaretMoveHome (data, true, false);
+ return;
+ }
+ }
switch (data.Options.IndentStyle) {
case IndentStyle.None:
data.InsertAtCaret (data.EolMarker);