From f02b8bc9fdfefac8829fc28aa1c13efcc6088da5 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Wed, 4 Sep 2024 00:50:30 -0400 Subject: [PATCH] stats.lua: fix text size/alignment for key bindings page After a subject line, the text style needs to be reset to make sure that key binding lines have correct size and alignment while scrolling the page. --- player/lua/stats.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 1830b8a41e..d07dd2fb7e 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -517,7 +517,7 @@ local function get_kbinfo_lines() local spre = term and kspaces .. " " or format("{\\q2\\fn%s}%s {\\fn%s}{\\fs%d\\u1}", o.font_mono, kspaces, o.font, 1.3*font_size) - local spost = term and "" or format("{\\u0\\fs%d}", font_size) + local spost = term and "" or format("{\\u0\\fs%d}%s", font_size, text_style()) -- create the display lines local info_lines = {}