Skip to content

Commit

Permalink
fix(statusline): make sure max_items is honored
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent a4b9849 commit da8ba7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/trouble/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function M.statusline(opts)
---@cast opts trouble.Mode

local s = Spec.section(opts)
s.max_items = s.max_items or opts.max_items
local section = Section.new(s, opts)
section.on_update = function()
status = nil
Expand Down

0 comments on commit da8ba7d

Please sign in to comment.