sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

st-no_bold_colors-20170623-b331da5.diff (449B)


      1 diff --git a/x.c b/x.c
      2 index fbfd350..110f3cc 100644
      3 --- a/x.c
      4 +++ b/x.c
      5 @@ -1158,7 +1158,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
      6  
      7  	/* Change basic system colors [0-7] to bright system colors [8-15] */
      8  	if ((base.mode & ATTR_BOLD_FAINT) == ATTR_BOLD && BETWEEN(base.fg, 0, 7))
      9 -		fg = &dc.col[base.fg + 8];
     10 +		fg = &dc.col[base.fg];
     11  
     12  	if (IS_SET(MODE_REVERSE)) {
     13  		if (fg == &dc.col[defaultfg]) {