commit 86b67b70993251078f679f244cbcf30a76074da4 parent 5af56d29d1d96557702970eb8d082ef22c070bb2 Author: Nils R <ml@hxgn.net> Date: Fri, 6 Jun 2014 12:32:11 +0200 separate patches for st 0.5/git, wiki changed accordingly. Diffstat:
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/st.suckless.org/patches/solarized_color_scheme.md b/st.suckless.org/patches/solarized_color_scheme.md @@ -13,7 +13,8 @@ Notes ----- No matter if you choose the light or dark theme, to get the correct -colors, you *always* have to apply the [patch to st.c][3]. Then, +colors, you *always* have to apply the [patch to st.c][7] (if you're +using the latest git version of st, use [this patch to st.c][3]). Then, apply one of the patches for either the [light][4] or the [dark][5] version of solarized. @@ -36,6 +37,7 @@ The font is [Source Code Pro][6]. Download -------- + * [st-0.5-no-bold-colors.diff][7] * [st-no-bold-colors.diff][3] * [st-solarized-light.diff][4] * [st-solarized-dark.diff][5] @@ -46,6 +48,7 @@ Download [4]: st-solarized-light.diff [5]: st-solarized-dark.diff [6]: http://en.wikipedia.org/wiki/Source_Code_Pro +[7]: st-0.5-no-bold-colors.diff Author ------ diff --git a/st.suckless.org/patches/st-no-bold-colors.diff b/st.suckless.org/patches/st-0.5-no-bold-colors.diff diff --git a/st.suckless.org/patches/st-no-bold-colors.diff b/st.suckless.org/patches/st-no-bold-colors.diff @@ -1,12 +1,12 @@ diff --git a/st.c b/st.c --- a/st.c +++ b/st.c -@@ -3203,7 +3203,7 @@ - if(base.mode & ATTR_BOLD) { - if(BETWEEN(base.fg, 0, 7)) { - /* basic system colors */ +@@ -3164,7 +3164,7 @@ + * to bright system colors [8-15] + */ + if(BETWEEN(base.fg, 0, 7)) - fg = &dc.col[base.fg + 8]; + fg = &dc.col[base.fg]; - } else if(BETWEEN(base.fg, 16, 195)) { - /* 256 colors */ - fg = &dc.col[base.fg + 36]; + + if(base.mode & ATTR_ITALIC) { + font = &dc.ibfont;