Author: mkrueger
Date: 2008-02-19 08:31:26 -0500 (Tue, 19 Feb 2008)
New Revision: 96138

Modified:
   trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog
   
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs
Log:
* Mono.TextEditor/TextViewMargin.cs: fixed Bug 362879 - Bracket
  highlight not removed.

Modified: trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog 2008-02-19 
13:26:16 UTC (rev 96137)
+++ trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog 2008-02-19 
13:31:26 UTC (rev 96138)
@@ -1,5 +1,10 @@
 2008-02-19  Mike Krüger <[EMAIL PROTECTED]> 
 
+       * Mono.TextEditor/TextViewMargin.cs: fixed Bug 362879 - Bracket 
highlight
+         not removed.
+
+2008-02-19  Mike Krüger <[EMAIL PROTECTED]> 
+
        * Mono.TextEditor/TextViewMargin.cs, Mono.TextEditor/TextEditorData.cs,
          Mono.TextEditor.Tests/Mono.TextEditor.Tests.pidb: Fixed Bug 362887 -
          Paste command pastes text to the wrong location.

Modified: 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs
===================================================================
--- 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs
 2008-02-19 13:26:16 UTC (rev 96137)
+++ 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs
 2008-02-19 13:31:26 UTC (rev 96138)
@@ -129,8 +129,13 @@
                                int offset = Caret.Offset - 1;
                                if (offset >= 0 && offset < Document.Length && 
!TextUtil.IsBracket (Document.GetCharAt (offset)))
                                        offset++;
-                               if (offset >= Document.Length)
+                               if (offset >= Document.Length) {
+                                       int old = highlightBracketOffset;
+                                       highlightBracketOffset = -1;
+                                       if (old >= 0)
+                                               textEditor.RedrawLine 
(Document.OffsetToLineNumber (old));
                                        return;
+                               }
                                if (offset < 0)
                                        offset = 0;
                                int oldIndex = highlightBracketOffset;

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to