[svn] r6627: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/GotoInfo.n

IT svnadmin at nemerle.org
Fri Sep 8 06:15:06 CEST 2006


Log:
Changed the selection area.

Author: IT
Date: Fri Sep  8 06:15:03 2006
New Revision: 6627

Modified:
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/GotoInfo.n

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/GotoInfo.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/GotoInfo.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/GotoInfo.n	Fri Sep  8 06:15:03 2006
@@ -2,11 +2,8 @@
 
 using Nemerle.Utility;
 using Nemerle.Compiler;
-//using Nemerle.Imperative;
 using Nemerle.Compiler.Typedtree;
 using Nemerle.Compiler.Parsetree;
-//using Nemerle.IO;
-//using Nemerle.Compiler.Utils;
 
 namespace Nemerle.Completion2
 {
@@ -49,6 +46,12 @@
       _colStart  = location.Column    - 1;
       _lineEnd   = location.EndLine   - 1;
       _colEnd    = location.EndColumn - 1;
+
+      when (_lineStart < _lineEnd)
+      {
+        _lineEnd = _lineStart + 1;
+        _colEnd  = 0;
+      }
     }
 
     public HasLocation : bool



More information about the svn mailing list