fix: callback was not called in stream mode (#95)
This commit is contained in:
parent
940106d82b
commit
2d160fc5d7
@ -278,6 +278,9 @@ function Sidebar:update_content(content, opts)
|
|||||||
if opts.scroll then
|
if opts.scroll then
|
||||||
scroll_to_bottom()
|
scroll_to_bottom()
|
||||||
end
|
end
|
||||||
|
if opts.callback ~= nil then
|
||||||
|
opts.callback()
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
vim.defer_fn(function()
|
vim.defer_fn(function()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user