Author: mkrueger
Date: 2008-02-19 14:35:42 -0500 (Tue, 19 Feb 2008)
New Revision: 96175

Modified:
   trunk/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/ChangeLog
   
trunk/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs
Log:
* MonoDevelop.SourceEditor/SourceEditorView.cs: fixed little comment
  issue.

Modified: trunk/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/ChangeLog       
2008-02-19 19:24:45 UTC (rev 96174)
+++ trunk/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/ChangeLog       
2008-02-19 19:35:42 UTC (rev 96175)
@@ -1,5 +1,9 @@
 2008-02-19  Mike Krüger <[EMAIL PROTECTED]> 
 
+       * MonoDevelop.SourceEditor/SourceEditorView.cs: fixed little comment 
issue.
+
+2008-02-19  Mike Krüger <[EMAIL PROTECTED]> 
+
        * MonoDevelop.SourceEditor/SourceEditorView.cs: Fixing file changed bug
          (with new files).
 

Modified: 
trunk/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs
===================================================================
--- 
trunk/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs
    2008-02-19 19:24:45 UTC (rev 96174)
+++ 
trunk/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs
    2008-02-19 19:35:42 UTC (rev 96175)
@@ -770,7 +770,8 @@
                        }
                        if (TextEditor.IsSomethingSelected) {
                                if (TextEditor.SelectionAnchor < 
TextEditor.Caret.Offset) {
-                                       TextEditor.SelectionAnchor = 
System.Math.Min (anchorLine.Offset + anchorLine.EditableLength, System.Math.Max 
(anchorLine.Offset, TextEditor.SelectionAnchor + commentTag.Length));
+                                       if (anchorColumn != 0) 
+                                               TextEditor.SelectionAnchor = 
System.Math.Min (anchorLine.Offset + anchorLine.EditableLength, System.Math.Max 
(anchorLine.Offset, TextEditor.SelectionAnchor + commentTag.Length));
                                } else {
                                        if (anchorColumn != 0) {
                                                TextEditor.SelectionAnchor = 
System.Math.Min (anchorLine.Offset + anchorLine.EditableLength, System.Math.Max 
(anchorLine.Offset, anchorLine.Offset + anchorColumn + commentTag.Length));

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

Reply via email to