Skip to content

Commit

Permalink
fix: bad nui parameter in last commit (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jun 7, 2022
1 parent 55ce040 commit d394a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dressing/select/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ M.select = function(config, items, opts, on_choice)
for i, item in ipairs(items) do
local line = opts.format_item(item)
line_width = math.max(line_width, vim.api.nvim_strwidth(line))
table.insert(lines, Menu.item(item, { value = item, idx = i }))
table.insert(lines, Menu.item(line, { value = item, idx = i }))
end

if not config.size then
Expand Down

0 comments on commit d394a25

Please sign in to comment.