From 6667362c2f1cd0fc1fdb1dacb486528b928470d5 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 20 Apr 2018 08:54:56 +0200 Subject: [PATCH] refs #7586; show surounding source also for hints and warnsings --- compiler/msgs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 749d29b55..35be5e772 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -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)