commit 60a671c96c7b55c03913535d62d3656676d5580a parent f93bd00e057fb4039d25bc2229cd3fb743eecd03 Author: Alexander Rogachev <sorryforbadname@gmail.com> Date: Wed, 27 Dec 2023 13:02:50 +0400 [st][patch][ligatures] Fix wrong indexing in boxdraw patch variant. Diffstat:
M | st.suckless.org/patches/ligatures/0.9/st-ligatures-boxdraw-20230105-0.9.diff | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/st.suckless.org/patches/ligatures/0.9/st-ligatures-boxdraw-20230105-0.9.diff b/st.suckless.org/patches/ligatures/0.9/st-ligatures-boxdraw-20230105-0.9.diff @@ -403,10 +403,10 @@ index bf6bbf9..929a59a 100644 + runewidth = win.cw * ((glyphs[start + idx].mode & ATTR_WIDE) ? 2.0f : 1.0f); + } + -+ if (glyphs[start + code_idx].mode & ATTR_BOXDRAW) { ++ if (glyphs[start + idx].mode & ATTR_BOXDRAW) { + /* minor shoehorning: boxdraw uses only this ushort */ + specs[numspecs].font = font->match; -+ specs[numspecs].glyph = boxdrawindex(&glyphs[start + code_idx]); ++ specs[numspecs].glyph = boxdrawindex(&glyphs[start + idx]); + specs[numspecs].x = xp; + specs[numspecs].y = yp; + numspecs++;