refs #7586; show surounding source also for hints and warnsings

This commit is contained in:
Andreas Rumpf
2018-04-20 08:54:56 +02:00
parent 9cc8fec370
commit 6667362c2f

View File

@@ -1048,7 +1048,7 @@ proc liMessage(info: TLineInfo, msg: TMsgKind, arg: string,
KindColor, `%`(KindFormat, kind))
else:
styledMsgWriteln(styleBright, x, resetStyle, color, title, resetStyle, s)
if msg in errMin..errMax and hintSource in gNotes:
if hintSource in gNotes:
info.writeSurroundingSrc
handleError(msg, eh, s)