History

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.

nanahi committed 2 years ago

Commit f02b8bc1 parent ecc6cdd1 file · +1 −1Browse files

Unified · Split

player/lua/stats.lua+1−1
@@ -517,7 +517,7 @@ local function get_kbinfo_lines() · 516 unmodified lines
517517 local spre = term and kspaces .. " "
518518 or format("{\\q2\\fn%s}%s {\\fn%s}{\\fs%d\\u1}",
519519 o.font_mono, kspaces, o.font, 1.3*font_size)
520− local spost = term and "" or format("{\\u0\\fs%d}", font_size)
520+ local spost = term and "" or format("{\\u0\\fs%d}%s", font_size, text_style())
521521
522522 -- create the display lines
523523 local info_lines = {}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t