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 Mar 29, 2024
1 parent 0dcd4e0 commit d8ade15
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 d8ade15

Please sign in to comment.