fix: callback was not called in stream mode (#95)

This commit is contained in:
yetone 2024-08-20 01:51:20 +08:00 committed by GitHub
parent 940106d82b
commit 2d160fc5d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -278,6 +278,9 @@ function Sidebar:update_content(content, opts)
if opts.scroll then
scroll_to_bottom()
end
if opts.callback ~= nil then
opts.callback()
end
end)
else
vim.defer_fn(function()