Skip to content

Commit

Permalink
fix: make sure that render.update() is called via vim.schedule()
Browse files Browse the repository at this point in the history
  • Loading branch information
taketwo committed Nov 14, 2023
1 parent 283bcea commit d571ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/barbar/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function events.enable()
'WinEnter', 'WinLeave',
},
{
callback = function() render.update() end,
callback = vim.schedule_wrap(render.update),
group = augroup_render,
}
)
Expand Down

0 comments on commit d571ecd

Please sign in to comment.