nitpretty: fixes length calculation for statements
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 22 Dec 2014 05:32:28 +0000 (00:32 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 13 Jan 2015 16:47:43 +0000 (17:47 +0100)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/pretty.nit

index 0227097..9225750 100644 (file)
@@ -345,7 +345,7 @@ redef class Prod
        end
 
        redef fun was_inline do
-               return first_token.location.line_start == last_token.location.line_end
+               return start_token.location.line_start == last_token.location.line_end
        end
 end