fix(open file): set target win when opening new file

fixes #1214
Still this is a patch that is not really great. This code should be
rewritten.
This commit is contained in:
kiyan 2022-05-07 12:16:23 +02:00
parent 545c43ffd9
commit ec888d08ce

View File

@ -247,6 +247,7 @@ function M.fn(mode, filename)
cmd = cmd .. vim.fn.fnameescape(filename)
api.nvim_set_current_win(target_winid)
pcall(vim.cmd, cmd)
lib.set_target_win()
end
if M.resize_window then