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.
This commit is contained in:
nanahi 2024-09-04 00:50:30 -04:00 committed by Kacper Michajłow
parent ecc6cddef0
commit f02b8bc9fd
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}