fix: another refresh callback rc
Co-authored-by: Alexey Radkov <alexey.radkov@gmail.com>
This commit is contained in:
@@ -318,9 +318,14 @@ function Sidebar:refresh_handler(response)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local curbuf = vim.api.nvim_get_current_buf()
|
||||||
|
if curbuf == self.view.buf then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local newbuf = self:refresh_setup()
|
local newbuf = self:refresh_setup()
|
||||||
|
|
||||||
local items = parser.parse(response, vim.api.nvim_get_current_buf())
|
local items = parser.parse(response, curbuf)
|
||||||
self:_merge_items(items)
|
self:_merge_items(items)
|
||||||
|
|
||||||
local update_cursor = newbuf or cfg.o.outline_items.auto_set_cursor
|
local update_cursor = newbuf or cfg.o.outline_items.auto_set_cursor
|
||||||
|
|||||||
Reference in New Issue
Block a user