[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
1 changed files with 2 additions and 2 deletions

4
x.c
View File

@ -1650,7 +1650,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
HbTransformData shaped = { 0 }; HbTransformData shaped = { 0 };
/* Initial values. */ /* Initial values. */
mode = prevmode = glyphs[0].mode; mode = prevmode = glyphs[0].mode & ~ATTR_WRAP;
xresetfontsettings(mode, &font, &frcflags); xresetfontsettings(mode, &font, &frcflags);
#endif // LIGATURES_PATCH #endif // LIGATURES_PATCH
@ -1667,7 +1667,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
rune = g.u; rune = g.u;
mode = g.mode; mode = g.mode;
#elif LIGATURES_PATCH #elif LIGATURES_PATCH
mode = glyphs[i].mode; mode = glyphs[i].mode & ~ATTR_WRAP;
#else #else
rune = glyphs[i].u; rune = glyphs[i].u;
mode = glyphs[i].mode; mode = glyphs[i].mode;