From d7542aab11fbf9a35b5e7d18d016ee7962920c10 Mon Sep 17 00:00:00 2001 From: Simrat Grewal Date: Wed, 10 Aug 2022 15:40:38 -0700 Subject: [PATCH] refresh: Use view.is_open --- lua/symbols-outline.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/symbols-outline.lua b/lua/symbols-outline.lua index 3aec829..68805fc 100644 --- a/lua/symbols-outline.lua +++ b/lua/symbols-outline.lua @@ -31,7 +31,7 @@ local function wipe_state() end local function __refresh() - if M.view.bufnr ~= nil then + if M.view:is_open() then local function refresh_handler(response) if response == nil or type(response) ~= 'table' then return