diff options
author | Ico Doornekamp <github@zevv.nl> | 2019-01-23 11:13:44 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-23 11:13:44 +0100 |
commit | efa4b9adaa6babb46b463e785ccc06e3494bd342 (patch) | |
tree | c826127e3803354ceeb6fb91d203778bc85461d7 /compiler/msgs.nim | |
parent | c3229dc1c3af3c1766bba79d013e0f90b02d19d5 (diff) | |
download | Nim-efa4b9adaa6babb46b463e785ccc06e3494bd342.tar.gz |
Fixes #10263; [backport]
Diffstat (limited to 'compiler/msgs.nim')
-rw-r--r-- | compiler/msgs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 0dd5820b4..698b81061 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -432,7 +432,7 @@ proc addSourceLine(conf: ConfigRef; fileIdx: FileIndex, line: string) = proc sourceLine*(conf: ConfigRef; i: TLineInfo): string = if i.fileIndex.int32 < 0: return "" - if not optPreserveOrigSource(conf) and conf.m.fileInfos[i.fileIndex.int32].lines.len == 0: + if conf.m.fileInfos[i.fileIndex.int32].lines.len == 0: try: for line in lines(toFullPath(conf, i)): addSourceLine conf, i.fileIndex, line.string |