commit 3fcf0e3db74b906c4802eeb2fd0b93c89e0de4a7
parent 003ab067da7e57788a61c00738dcfdf275a0b64d
Author: Bakkeby <bakkeby@gmail.com>
Date: Thu, 23 Nov 2023 22:21:31 +0100
[st][patch][ligatures] Fix ATTR_WRAP attribute handling in layout logic.
Ref. https://git.suckless.org/sites/commit/20d453defdb6ae7bb37f644a2e2831cf2097cdbb.html
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/x.c b/x.c
@@ -1650,7 +1650,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
HbTransformData shaped = { 0 };
/* Initial values. */
- mode = prevmode = glyphs[0].mode;
+ mode = prevmode = glyphs[0].mode & ~ATTR_WRAP;
xresetfontsettings(mode, &font, &frcflags);
#endif // LIGATURES_PATCH
@@ -1667,7 +1667,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
rune = g.u;
mode = g.mode;
#elif LIGATURES_PATCH
- mode = glyphs[i].mode;
+ mode = glyphs[i].mode & ~ATTR_WRAP;
#else
rune = glyphs[i].u;
mode = glyphs[i].mode;