|
|
@@ -141,7 +141,7 @@ function which_key.format_hints(bindings, max_width)
|
|
|
hint = binding.key .. ":" .. desc
|
|
|
else
|
|
|
-- Truncate long command names
|
|
|
- local cmd = binding.command
|
|
|
+ local cmd = binding.command or "?"
|
|
|
if #cmd > 15 then
|
|
|
cmd = cmd:sub(1, 12) .. "..."
|
|
|
end
|