sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit be60b305ea214dcd0bc113711837253887f21021
parent 8f1a7360be932ae5b5932a6e22ee2caa300c2a20
Author: dequis <dx@dxzone.com.ar>
Date:   Fri,  9 Mar 2018 19:47:29 -0300

Update st spoiler patch for git

Diffstat:
Mst.suckless.org/patches/spoiler/index.md | 1+
Ast.suckless.org/patches/spoiler/st-spoiler-20180309-c5ba9c0.diff | 21+++++++++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/st.suckless.org/patches/spoiler/index.md b/st.suckless.org/patches/spoiler/index.md @@ -23,6 +23,7 @@ Download * [st-spoiler-0.7.diff](st-spoiler-0.7.diff) * [st-spoiler-20160727-308bfbf.diff](st-spoiler-20160727-308bfbf.diff) * [st-spoiler-20170802-e2ee5ee.diff](st-spoiler-20170802-e2ee5ee.diff) + * [st-spoiler-20180309-c5ba9c0.diff](st-spoiler-20180309-c5ba9c0.diff) Author ------ diff --git a/st.suckless.org/patches/spoiler/st-spoiler-20180309-c5ba9c0.diff b/st.suckless.org/patches/spoiler/st-spoiler-20180309-c5ba9c0.diff @@ -0,0 +1,21 @@ +diff --git a/x.c b/x.c +--- a/x.c ++++ b/x.c +@@ -1330,9 +1330,14 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i + } + + if (base.mode & ATTR_REVERSE) { +- temp = fg; +- fg = bg; +- bg = temp; ++ if (bg == fg) { ++ bg = &dc.col[defaultfg]; ++ fg = &dc.col[defaultbg]; ++ } else { ++ temp = fg; ++ fg = bg; ++ bg = temp; ++ } + } + + if (base.mode & ATTR_BLINK && win.mode & MODE_BLINK)