Skip to content

Commit 86a4dc4

Browse files
committed
feat(keymaps): unconstrain desc when show_details=false
closes #1802
1 parent 1176d51 commit 86a4dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/fzf-lua/providers/nvim.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ M.keymaps = function(opts)
368368
if opts.show_details == false then field_fmt.rhs = nil end
369369

370370
local format = function(info)
371-
info.desc = string.sub(info.desc or "", 1, 33)
371+
info.desc = field_fmt.rhs and string.sub(info.desc or "", 1, 33) or info.desc
372372
local ret
373373
for _, f in ipairs(fields) do
374374
if field_fmt[f] then

0 commit comments

Comments
 (0)