Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 3cd2547 · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:src/tui/ncurses.go+1 added-3 removed
180 unmodified lines
181func attrMono(pair ColorPair, a Attr) C.int {182 var attr C.int183 switch pair {184 case ColCurrent:185 if C.int(a)&C.A_BOLD == C.A_BOLD {186 attr = C.A_REVERSE185 attr = C.A_REVERSE187 }186 case ColMatch:187 attr = C.A_UNDERLINE188 case ColCurrentMatch:189 attr = C.A_UNDERLINE | C.A_REVERSE
260 unmodified lines