diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2012-05-30 12:44:16 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2012-05-30 12:44:16 +0400 |
commit | 43445a78a77183096d46ffeb9d14b6a74aa1c951 (patch) | |
tree | 39b8f3cac498816535642a07f8d67060e1d5157f /main/src | |
parent | 95fd2fb0cc8f4621f70491f51efbc46e049b9b59 (diff) |
Fixed 'Bug 5402 - Backspace doesn't work with 1-tab virtual indent'.
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/DeleteActions.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/DeleteActions.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/DeleteActions.cs index 6a599c1f26..84988e0b0a 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/DeleteActions.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/DeleteActions.cs @@ -216,7 +216,9 @@ namespace Mono.TextEditor int offset = data.Caret.Offset; if (offset <= 0) return; + int column = data.Caret.Column; data.Remove (offset - 1, 1); + data.Caret.Column = column - 1; } public static void Delete (TextEditorData data) |