Fix --no-bold on --no-color

This commit is contained in:
Junegunn Choi
2016-11-19 23:12:28 +09:00
parent 3cd2547e91
commit d75ed841a9

View File

@@ -182,9 +182,7 @@ func attrMono(pair ColorPair, a Attr) C.int {
var attr C.int
switch pair {
case ColCurrent:
if C.int(a)&C.A_BOLD == C.A_BOLD {
attr = C.A_REVERSE
}
attr = C.A_REVERSE
case ColMatch:
attr = C.A_UNDERLINE
case ColCurrentMatch: