diff options
| author | shipwreckt <me@shipwreckt.co.uk> | 2025-10-16 22:13:02 +0100 |
|---|---|---|
| committer | shipwreckt <me@shipwreckt.co.uk> | 2025-10-16 22:13:02 +0100 |
| commit | e63a16b509b05993fc7900b6296ba8601e343976 (patch) | |
| tree | b9e1d57e09a111981427bafe3b3223384e358830 /files/config/suckless/st/st.c.rej | |
| parent | e8b5675eb77aa20027f369ca278457b6a7c2e142 (diff) | |
More small changes, added thunderbird items.
Diffstat (limited to 'files/config/suckless/st/st.c.rej')
| -rw-r--r-- | files/config/suckless/st/st.c.rej | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/files/config/suckless/st/st.c.rej b/files/config/suckless/st/st.c.rej new file mode 100644 index 0000000..81bdbd9 --- /dev/null +++ b/files/config/suckless/st/st.c.rej @@ -0,0 +1,27 @@ +--- st.c ++++ st.c +@@ -1264,9 +1313,24 @@ tsetchar(Rune u, const Glyph *attr, int x, int y) + term.line[y][x-1].mode &= ~ATTR_WIDE; + } + ++ if (u == ' ' && term.line[y][x].mode & ATTR_IMAGE && ++ tgetisclassicplaceholder(&term.line[y][x])) { ++ // This is a workaround: don't overwrite classic placement ++ // placeholders with space symbols (unlike Unicode placeholders ++ // which must be overwritten by anything). ++ term.line[y][x].bg = attr->bg; ++ term.dirty[y] = 1; ++ return; ++ } ++ + term.dirty[y] = 1; + term.line[y][x] = *attr; + term.line[y][x].u = u; ++ ++ if (u == IMAGE_PLACEHOLDER_CHAR || u == IMAGE_PLACEHOLDER_CHAR_OLD) { ++ term.line[y][x].u = 0; ++ term.line[y][x].mode |= ATTR_IMAGE; ++ } + } + + void |
