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

Showing the changes to player/lua/stats.lua (1 of 1 file). Show all

Unified · Split

player/lua/stats.lua+1−1
@@ -517,7 +517,7 @@ local function get_kbinfo_lines() · 516 unmodified lines
517 local spre = term and kspaces .. " "517 local spre = term and kspaces .. " "
518 or format("{\\q2\\fn%s}%s {\\fn%s}{\\fs%d\\u1}",518 or format("{\\q2\\fn%s}%s {\\fn%s}{\\fs%d\\u1}",
519 o.font_mono, kspaces, o.font, 1.3*font_size)519 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())
521 521
522 -- create the display lines522 -- create the display lines
523 local info_lines = {}523 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