Author: mkrueger
Date: 2008-02-08 05:51:19 -0500 (Fri, 08 Feb 2008)
New Revision: 95233

Modified:
   trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog
   
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs
Log:
* Mono.TextEditor.Highlighting/SyntaxModeService.cs: removed some
  redraws.

Modified: trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog 2008-02-08 
10:44:26 UTC (rev 95232)
+++ trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog 2008-02-08 
10:51:19 UTC (rev 95233)
@@ -1,5 +1,9 @@
 2008-02-08  Mike Krüger <[EMAIL PROTECTED]> 
 
+       * Mono.TextEditor.Highlighting/SyntaxModeService.cs: removed some 
redraws.
+
+2008-02-08  Mike Krüger <[EMAIL PROTECTED]> 
+
        * Mono.TextEditor/Document.cs, Mono.TextEditor/LineSplitter.cs,
          Mono.TextEditor.Highlighting/SyntaxMode.cs,
          Mono.TextEditor.Highlighting/SyntaxModeService.cs: Fixed highlighting

Modified: 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs
===================================================================
--- 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs
 2008-02-08 10:44:26 UTC (rev 95232)
+++ 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs
 2008-02-08 10:51:19 UTC (rev 95233)
@@ -155,6 +155,7 @@
                        int endOffset   = (int)data[3];
                        int lineOffset  = 0;
                        bool foundEndLine = false;
+                       bool equal = false;
                        
RedBlackTree<LineSegmentTree.TreeNode>.RedBlackTreeIterator iter = 
doc.Splitter.GetByOffset (startOffset).Iter;
                        LineSegment endLine = doc.Splitter.GetByOffset 
(endOffset);
                        Stack<Span> spanStack = iter.Current.StartSpan != null 
? new Stack<Span> (iter.Current.StartSpan) : new Stack<Span> ();
@@ -166,7 +167,7 @@
                                Span[] newSpans = spanStack.ToArray ();
                                if (foundEndLine) {
                                        if (line.StartSpan == null 
|| newSpans.Length == line.StartSpan.Length) {
-                                               bool equal = false;
+                                               equal = false;
                                                if (line.StartSpan != null) {
                                                        equal = true;
                                                        for (int i = 0; i < 
newSpans.Length; i++) {
@@ -192,7 +193,7 @@
                                        foundEndLine = true;
                                }
                        } while (iter.MoveNext ());
-                       if (lineOffset > endLine.Offset) {
+                       if (!equal) {
                                doc.RequestUpdate (new UpdateAll ());
                                doc.CommitDocumentUpdate ();
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to