We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1384ad6 commit 2b57d8cCopy full SHA for 2b57d8c
1 file changed
lua/bufferline/ui.lua
@@ -47,7 +47,7 @@ local components = {
47
---@param item bufferline.Component?
48
local function set_hover_state(item)
49
state.set({ hovered = item })
50
- vim.schedule(M.refresh)
+ M.refresh()
51
end
52
53
---@class HoverOpts
@@ -127,8 +127,10 @@ end
127
local function get_marker_size(count, element_size) return count > 0 and strwidth(tostring(count)) + element_size or 0 end
128
129
function M.refresh()
130
- vim.cmd("redrawtabline")
131
- vim.cmd("redraw")
+ vim.schedule(function()
+ vim.cmd("redrawtabline")
132
+ vim.cmd("redraw")
133
+ end)
134
135
136
---Add click action to a component
0 commit comments