summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-24 12:44:14 +0200
committerAraq <rumpf_a@web.de>2015-04-24 12:44:14 +0200
commita5f321ea8f0cee7929afaba8bb88bde477c37937 (patch)
treedd9ed898dacfa952a8559e62538d0de698fc8b66 /compiler
parentc2d79a63832c251c183dacc3090013dac2f37de8 (diff)
downloadNim-a5f321ea8f0cee7929afaba8bb88bde477c37937.tar.gz
finishes #2566
Diffstat (limited to 'compiler')
-rw-r--r--compiler/msgs.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index 7681b4eb8..041a181be 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -738,7 +738,7 @@ proc writeContext(lastinfo: TLineInfo) =
     if msgContext[i] != lastinfo and msgContext[i] != info:
       msgWriteln(PosContextFormat % [toMsgFilename(msgContext[i]),
                                      coordToStr(msgContext[i].line),
-                                     coordToStr(msgContext[i].col),
+                                     coordToStr(msgContext[i].col+1),
                                      getMessageStr(errInstantiationFrom, "")])
     info = msgContext[i]
 
@@ -781,7 +781,7 @@ proc formatMsg*(info: TLineInfo, msg: TMsgKind, arg: string): string =
              of hintMin..hintMax: PosHintFormat
              else: PosErrorFormat
   result = frmt % [toMsgFilename(info), coordToStr(info.line),
-                   coordToStr(info.col), getMessageStr(msg, arg)]
+                   coordToStr(info.col+1), getMessageStr(msg, arg)]
 
 proc liMessage(info: TLineInfo, msg: TMsgKind, arg: string,
                eh: TErrorHandling) =