aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-09-20 09:15:38 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-10-10 13:25:34 +0200
commit48000c6455694171b554fcb838daae60bc20d6eb (patch)
tree2d85846a0d017d28c15558536398f6585a00645f /src
parentaf25cb15ca67ac45a13c9b21519efab178409e7d (diff)
downloaddotty-48000c6455694171b554fcb838daae60bc20d6eb.tar.gz
dotty-48000c6455694171b554fcb838daae60bc20d6eb.tar.bz2
dotty-48000c6455694171b554fcb838daae60bc20d6eb.zip
Fix underline position
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/reporting/ConsoleReporter.scala2
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))