|
|
@ -145,8 +145,12 @@ local function get_choices(hotkeys, bindings, is_inverted)
|
|
|
|
command_str = command:sub(1, max_command_len - 3) .. '...'
|
|
|
|
command_str = command:sub(1, max_command_len - 3) .. '...'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
table.insert(tokens, 1, { text = command_str })
|
|
|
|
table.insert(tokens, 1, { text = command_str })
|
|
|
|
local choice = {icon=ARROW, command=command, text=tokens,
|
|
|
|
local choice = {
|
|
|
|
hk_width=hk_width}
|
|
|
|
icon = ARROW,
|
|
|
|
|
|
|
|
command = command,
|
|
|
|
|
|
|
|
text = tokens,
|
|
|
|
|
|
|
|
hk_width = hk_width
|
|
|
|
|
|
|
|
}
|
|
|
|
max_width = math.max(max_width, hk_width + #command_str + LIST_BUFFER)
|
|
|
|
max_width = math.max(max_width, hk_width + #command_str + LIST_BUFFER)
|
|
|
|
table.insert(choices, is_inverted and 1 or #choices + 1, choice)
|
|
|
|
table.insert(choices, is_inverted and 1 or #choices + 1, choice)
|
|
|
|
::continue::
|
|
|
|
::continue::
|
|
|
|