diff --git a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlCodeCompletionBinding.cs b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlCodeCompletionBinding.cs index d229e99e83..56c786f773 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlCodeCompletionBinding.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlCodeCompletionBinding.cs @@ -5,7 +5,10 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; + +using ICSharpCode.AvalonEdit.Document; using ICSharpCode.Core; +using ICSharpCode.SharpDevelop; using ICSharpCode.SharpDevelop.Editor; using ICSharpCode.SharpDevelop.Editor.CodeCompletion; @@ -73,9 +76,9 @@ namespace ICSharpCode.XmlEditor int elementStartIndex = XmlParser.GetActiveElementStartIndex(editor.Document.Text, editor.Caret.Offset); if (elementStartIndex <= -1) return false; - if (editor.Document.GetText(elementStartIndex, editor.Document.TextLength >= elementStartIndex + "= elementStartIndex + "