Skip to content

Commit

Permalink
fix(traverse): guard _tree with rawget; #79
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelot committed Oct 26, 2022
1 parent 5fc36e3 commit b6044c8
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 @@ -355,7 +355,7 @@ end

function StatusLine:traverse(tree, stl)
stl = stl or {}
tree = tree or self._tree
tree = tree or self:local_("_tree")
local traverse = self.traverse

if not tree then
Expand Down

0 comments on commit b6044c8

Please sign in to comment.