From 3fcf0e3db74b906c4802eeb2fd0b93c89e0de4a7 Mon Sep 17 00:00:00 2001 From: Bakkeby Date: Thu, 23 Nov 2023 22:21:31 +0100 Subject: [PATCH] [st][patch][ligatures] Fix ATTR_WRAP attribute handling in layout logic. Ref. https://git.suckless.org/sites/commit/20d453defdb6ae7bb37f644a2e2831cf2097cdbb.html --- x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x.c b/x.c index e7f993d..a5cc7ef 100644 --- 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;