You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
425 B
21 lines
425 B
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)
|
|
|