stats.lua: don't print the scroll hint with bindlist

This commit is contained in:
Guido Cella 2024-10-18 00:00:34 +02:00 committed by Kacper Michajłow
parent a187110f4a
commit d6951e4039
1 changed files with 2 additions and 1 deletions

View File

@ -1161,7 +1161,8 @@ local function keybinding_info(after_scroll, bindlist)
local page = pages[o.key_page_4]
eval_ass_formatting()
add_header(header)
append(header, "", {prefix=format("%s:%s", page.desc, scroll_hint(true)), nl="", indent=""})
local prefix = bindlist and page.desc or page.desc .. ":" .. scroll_hint(true)
append(header, "", {prefix=prefix, nl="", indent=""})
header = {table.concat(header)}
if not kbinfo_lines or not after_scroll then