diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/DiagnosticUtils.java b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/DiagnosticUtils.java index c39f0f4ab03..4b08488628b 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/DiagnosticUtils.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/DiagnosticUtils.java @@ -61,7 +61,7 @@ public class DiagnosticUtils { int lineStartOffset = document.getLineStartOffset(lineNumber); int column = offset - lineStartOffset; - return "' at line " + (lineNumber + 1) + ":" + column + pathSuffix; + return "' at line " + (lineNumber + 1) + ":" + (column + 1) + pathSuffix; } else { return "' at offset " + offset + " (line unknown)" + pathSuffix; @@ -78,7 +78,7 @@ public class DiagnosticUtils { int lineStartOffset = document.getLineStartOffset(lineNumber); int column = offset - lineStartOffset; - position = "(" + (lineNumber + 1) + "," + column + ")"; + position = "(" + (lineNumber + 1) + "," + (column + 1) + ")"; } else { position = "(offset: " + offset + " line unknown)";