commit 953e60e96aca92491703ff1cb6aec33f91c0e945 parent 4764942b579aec913184d9d2c0f9a660b160db7a Author: parazyd <parazyd@dyne.org> Date: Tue, 26 Apr 2022 20:37:09 +0200 spoiler Diffstat:
M | x.c | | | 11 | ++++++++--- |
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/x.c b/x.c @@ -1496,9 +1496,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)