diff options
| author | salmonik <raisersoft@proton.me> | 2026-02-06 13:55:50 +0100 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-02-06 13:55:50 +0100 |
| commit | 3bc06ead97987a3c6d8144356fbffc9e83e84f97 (patch) | |
| tree | 505accab295c45edb906b31bb570e4383a1faca3 | |
| parent | Create a desktop-entry for st (diff) | |
| download | st-3bc06ead97987a3c6d8144356fbffc9e83e84f97.tar.gz st-3bc06ead97987a3c6d8144356fbffc9e83e84f97.zip | |
make URLs display bold and underlined
| -rw-r--r-- | x.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1288,13 +1288,13 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x | |||
| 1288 | font = &dc.font; | 1288 | font = &dc.font; |
| 1289 | frcflags = FRC_NORMAL; | 1289 | frcflags = FRC_NORMAL; |
| 1290 | runewidth = win.cw * ((mode & ATTR_WIDE) ? 2.0f : 1.0f); | 1290 | runewidth = win.cw * ((mode & ATTR_WIDE) ? 2.0f : 1.0f); |
| 1291 | if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD)) { | 1291 | if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD || mode & ATTR_URL)) { |
| 1292 | font = &dc.ibfont; | 1292 | font = &dc.ibfont; |
| 1293 | frcflags = FRC_ITALICBOLD; | 1293 | frcflags = FRC_ITALICBOLD; |
| 1294 | } else if (mode & ATTR_ITALIC) { | 1294 | } else if (mode & ATTR_ITALIC) { |
| 1295 | font = &dc.ifont; | 1295 | font = &dc.ifont; |
| 1296 | frcflags = FRC_ITALIC; | 1296 | frcflags = FRC_ITALIC; |
| 1297 | } else if (mode & ATTR_BOLD) { | 1297 | } else if (mode & ATTR_BOLD || mode & ATTR_URL) { |
| 1298 | font = &dc.bfont; | 1298 | font = &dc.bfont; |
| 1299 | frcflags = FRC_BOLD; | 1299 | frcflags = FRC_BOLD; |
| 1300 | } | 1300 | } |
