commit dca9f7b08e0842d30210b8021e7bcf1b819df5ee parent ffe5924a125ac579bf1c681bac51fa1cac8556a8 Author: deurzen <m.deurzen@tum.de> Date: Thu, 14 Jan 2021 01:52:07 +0100 applies st-spoiler-20180309-c5ba9c0.diff Diffstat:
M | x.c | | | 11 | ++++++++--- |
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/x.c b/x.c @@ -1443,9 +1443,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)