fix: Typo introduced in follow_cursor commit for __refresh()

Courtesy of @silvercircle for bringing it up.

Typo introduced in: 9e96b54
This commit is contained in:
hedy
2023-11-12 09:09:23 +08:00
parent 432b84402f
commit 58b1bee0be

View File

@@ -70,7 +70,7 @@ end
local function __refresh() local function __refresh()
local current_buffer_is_outline = M.view.bufnr local current_buffer_is_outline = M.view.bufnr
== vim.api.nvim_get_current_buf() == vim.api.nvim_get_current_buf()
if M.view:is_open() and current_buffer_is_outline then if M.view:is_open() and not current_buffer_is_outline then
local function refresh_handler(response) local function refresh_handler(response)
if response == nil or type(response) ~= 'table' then if response == nil or type(response) ~= 'table' then
return return