Skip to content

Commit dcdbc24

Browse files
committed
Fix underline position
1 parent 927acec commit dcdbc24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/reporting/ConsoleReporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ConsoleReporter(
4040

4141
def columnMarker(pos: SourcePosition, offset: Int)(implicit ctx: Context) =
4242
if (pos.startLine == pos.endLine) {
43-
val whitespace = " " * (pos.column + offset)
43+
val whitespace = " " * (pos.startColumn + offset)
4444
val carets =
4545
Red("^" * math.max(1, pos.endColumn - pos.startColumn))
4646

0 commit comments

Comments
 (0)