[wiki] [sites] [st][patch][ligatures] Fix wrong indexing in boxdraw patch variant. || Alexander Rogachev

From: <git_AT_suckless.org>
Date: Wed, 27 Dec 2023 10:00:39 +0100

commit 60a671c96c7b55c03913535d62d3656676d5580a
Author: Alexander Rogachev <sorryforbadname_AT_gmail.com>
Date: Wed Dec 27 13:02:50 2023 +0400

    [st][patch][ligatures] Fix wrong indexing in boxdraw patch variant.

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
index 487d037d..31c91740 100644
--- 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
_AT_@ -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++;
Received on Wed Dec 27 2023 - 10:00:39 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 27 2023 - 10:00:49 CET