Open handler checks if view is not already open
This commit is contained in:
@@ -276,7 +276,7 @@ local function setup_keymaps(bufnr)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function handler(response)
|
local function handler(response)
|
||||||
if response == nil or type(response) ~= 'table' then
|
if response == nil or type(response) ~= 'table' or M.view:is_open() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user