Skip to content

Commit

Permalink
fix(ex.component): pass self to the fmt function
Browse files Browse the repository at this point in the history
fmt
  • Loading branch information
vladimir-popov authored and dokwork committed Nov 19, 2023
1 parent 70dbfce commit 73ded89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lualine/ex/component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function Ex:draw(default_highlight, is_focused)
self.default_hl = default_highlight
local status = self:update_status(is_focused)
if self.options.fmt then
status = self.options.fmt(status or '')
status = self.options.fmt(status or '', self)
end
-- we have two option to turn icon off:
-- 1. turn off all icons for components
Expand Down

0 comments on commit 73ded89

Please sign in to comment.