diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/reporting/ConsoleReporter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |