[st][patch][ligatures] Fix ATTR_WRAP attribute handling in layout logic.

Ref. https://git.suckless.org/sites/commit/20d453defdb6ae7bb37f644a2e2831cf2097cdbb.html
This commit is contained in:
Bakkeby 2023-11-23 22:21:31 +01:00
parent 003ab067da
commit 3fcf0e3db7

4
x.c
View File

@ -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;