refresh: Use view.is_open

This commit is contained in:
Simrat Grewal
2022-08-10 15:40:38 -07:00
parent 1188ed7201
commit d7542aab11

View File

@@ -31,7 +31,7 @@ local function wipe_state()
end end
local function __refresh() local function __refresh()
if M.view.bufnr ~= nil then if M.view:is_open() 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