X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=3aa85391507bf5574b2888dcac0224e922c5550f;hb=1fc4afd1e6609732178369c7f17c917204aad4cc;hp=96378343746d82c3fd84e9c84bb156fc037a037d;hpb=50e6355e0d6c9843b51ac4711980401205ce06c1;p=st.git diff --git a/st.c b/st.c index 9637834..3aa8539 100644 --- a/st.c +++ b/st.c @@ -3236,6 +3236,9 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { if(base.mode & ATTR_BLINK && term.mode & MODE_BLINK) fg = bg; + if(base.mode & ATTR_INVISIBLE) + fg = bg; + /* Intelligent cleaning up of the borders. */ if(x == 0) { xclear(0, (y == 0)? 0 : winy, borderpx, @@ -3380,6 +3383,11 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { width, 1); } + if(base.mode & ATTR_STRUCK) { + XftDrawRect(xw.draw, fg, winx, winy + 2 * font->ascent / 3, + width, 1); + } + /* Reset clip to none. */ XftDrawSetClip(xw.draw, 0); }