Revert "feat: reset old window when leaving the tree" (#421)

This commit is contained in:
Sindre T. Strøm
2021-05-31 22:46:54 +02:00
committed by GitHub
parent 9aed1acb47
commit aa026ab87c
2 changed files with 0 additions and 16 deletions

View File

@@ -194,20 +194,6 @@ function M.reset_highlight()
renderer.render_hl(view.View.bufnr)
end
local old_win = nil
function M.save_previous_buf()
vim.cmd "wincmd p"
old_win = api.nvim_get_current_win()
vim.cmd "wincmd p"
end
function M.set_previous_buf()
if old_win then
api.nvim_set_current_win(old_win)
end
end
view.setup()
colors.setup()
vim.defer_fn(M.on_enter, 1)