sites

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

st-no_bold_colors-0.5.diff (414B)


      1 diff --git a/st.c b/st.c
      2 index 392f12d..f893147 100644
      3 --- a/st.c
      4 +++ b/st.c
      5 @@ -3152,7 +3152,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
      6  	if(base.mode & ATTR_BOLD) {
      7  		if(BETWEEN(base.fg, 0, 7)) {
      8  			/* basic system colors */
      9 -			fg = &dc.col[base.fg + 8];
     10 +			fg = &dc.col[base.fg];
     11  		} else if(BETWEEN(base.fg, 16, 195)) {
     12  			/* 256 colors */
     13  			fg = &dc.col[base.fg + 36];