st
simple terminal
git clone https://9o.is/git/st.git
commit e32d78b308858eb10ff4b5f512bb557a1a4029c7 parent 0e9e3959064c9c8b8fcdbfd3dc41db4082b797b8 Author: Zacchary Dempsey-Plante <zacc@ztdp.ca> Date: Sun, 13 Mar 2022 10:44:08 +0100 make underlines and strikethroughs respect `chscale` Diffstat:
| M | x.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/x.c b/x.c @@ -1493,12 +1493,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i /* Render underline and strikethrough. */ if (base.mode & ATTR_UNDERLINE) { - XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1, + XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent * chscale + 1, width, 1); } if (base.mode & ATTR_STRUCK) { - XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent / 3, + XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent * chscale / 3, width, 1); }