diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2015-09-16 07:19:02 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2015-09-16 07:19:02 +0300 |
commit | f6669746a858984aedc5debc3eccd32cf6d4056f (patch) | |
tree | 0de8aa4513e2257e5763af33f9a4bccfaf406307 | |
parent | 7dcc1fe4b30c5620cf67d19d5e21eeb0ee599f7f (diff) |
Fixed 'Bug 32329 - Xamarin Studio doesn't paste cut lines at cursor'.
We tried that feature but decided to stay compatible with the rest of
the editor world in that case.
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/ClipboardActions.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/ClipboardActions.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/ClipboardActions.cs index 382c426546..22bcbb245a 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/ClipboardActions.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/ClipboardActions.cs @@ -358,11 +358,7 @@ namespace Mono.TextEditor data.Caret.PreserveSelection = true; result = text.Length; DocumentLine curLine = data.Document.GetLine (data.Caret.Line); - if (data.Caret.Column == 1 || data.GetVirtualIndentationColumn (data.Caret.Location) == data.Caret.Column) { - result = PastePlainText (data, curLine.Offset, text + data.EolMarker, preserveSelection, copyData); - } else { - result = PastePlainText (data, insertionOffset, data.EolMarker + text + data.EolMarker, preserveSelection, copyData); - } + result = PastePlainText (data, curLine.Offset, text + data.EolMarker, preserveSelection, copyData); if (!preserveState) data.ClearSelection (); data.Caret.PreserveSelection = false; |