From 48000c6455694171b554fcb838daae60bc20d6eb Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Tue, 20 Sep 2016 09:15:38 +0200 Subject: Fix underline position --- src/dotty/tools/dotc/reporting/ConsoleReporter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/reporting/ConsoleReporter.scala') diff --git a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala index a5979bd5b..321559e77 100644 --- a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala +++ b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala @@ -40,7 +40,7 @@ class ConsoleReporter( def columnMarker(pos: SourcePosition, offset: Int)(implicit ctx: Context) = if (pos.startLine == pos.endLine) { - val whitespace = " " * (pos.column + offset) + val whitespace = " " * (pos.startColumn + offset) val carets = Red("^" * math.max(1, pos.endColumn - pos.startColumn)) -- cgit v1.2.3