fix: handle new tabs properly (#313)

This commit is contained in:
Kiyan
2021-04-18 11:11:56 +02:00
committed by GitHub
parent 79a8188ecf
commit 783870cda9
4 changed files with 24 additions and 24 deletions

View File

@@ -38,15 +38,10 @@ function M.open()
end
end
-- this is completely broken, but i'm not sure why
-- this is definitely upstream related, but i could find a workaround
function M.tab_change()
-- we need defer_fn to make sure we close/open after we enter the tab
vim.defer_fn(function()
if M.close() then
M.open()
end
end, 1)
if not view.win_open() then
view.open()
end
end
local function gen_go_to(mode)