Skip to content

Commit

Permalink
fix(statusline): fix restrict behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelot committed Jan 26, 2022
1 parent e6695c8 commit 395a8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/heirline/statusline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function StatusLine:new(child)
end
end

local restrict = vim.tbl_extend("force", default_restrict, new.restrict or {})
local restrict = vim.tbl_extend("force", default_restrict, self.restrict or {})
setmetatable(new, self)
self.__index = function(t, v)
if restrict[v] then
Expand Down

0 comments on commit 395a8a8

Please sign in to comment.