st patch: spoiler
@@ -1420,10 +1420,15 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
}
if (base.mode & ATTR_REVERSE) {
+ 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)
fg = bg;
