diff options
author | Mike Krüger <mkrueger@novell.com> | 2010-04-15 13:32:28 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2010-04-15 13:32:28 +0400 |
commit | 4a9f00269a0af1a04f8b45916e21423f7ff47050 (patch) | |
tree | b370a7a3291fb9fe5b6efcecb65f331085e71878 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content | |
parent | bfda3aa431e2027bf01ae6eb007cf97c14175d60 (diff) |
* MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs:
* MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs: Fixed
'Bug 596511 - Code completion removes block selection and only
affects 1 line'.
svn path=/trunk/monodevelop/; revision=155486
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs index c950f53841..607f2941da 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs @@ -86,14 +86,16 @@ namespace MonoDevelop.Ide.Gui.Content | Gdk.ModifierType.Mod1Mask | Gdk.ModifierType.SuperMask; if ((modifier & ignoreMods) != 0) return res; - - int posChange = Editor.CursorPosition - oldPos; - if (currentCompletionContext != null && (Math.Abs (posChange) > 1 || (Editor.TextLength - oldLen) != posChange)) { - currentCompletionContext = null; - CompletionWindowManager.HideWindow (); - ParameterInformationWindowManager.HideWindow (); - return res; - } + /* + if (Document.TextEditorData == null || Document.TextEditorData.IsSomethingSelected && Document.TextEditorData.SelectionMode != Mono.TextEditor.SelectionMode.Block) { + int posChange = Editor.CursorPosition - oldPos; + if (currentCompletionContext != null && (Math.Abs (posChange) > 1 || (Editor.TextLength - oldLen) != posChange)) { + currentCompletionContext = null; + CompletionWindowManager.HideWindow (); + ParameterInformationWindowManager.HideWindow (); + return res; + } + }*/ if (!enableCodeCompletion) return res; |