hotfix forgot to switch win open to view in on_leave call

This commit is contained in:
kiyan42
2021-04-14 09:21:11 +02:00
parent ff814676d5
commit d065927322

View File

@@ -162,7 +162,7 @@ end
function M.on_leave()
vim.defer_fn(function()
if #api.nvim_list_wins() == 1 and lib.win_open() then
if #api.nvim_list_wins() == 1 and view.win_open() then
api.nvim_command(':silent qa!')
end
end, 50)