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:
@@ -247,6 +247,7 @@ function M.fn(mode, filename)
|
|||||||
cmd = cmd .. vim.fn.fnameescape(filename)
|
cmd = cmd .. vim.fn.fnameescape(filename)
|
||||||
api.nvim_set_current_win(target_winid)
|
api.nvim_set_current_win(target_winid)
|
||||||
pcall(vim.cmd, cmd)
|
pcall(vim.cmd, cmd)
|
||||||
|
lib.set_target_win()
|
||||||
end
|
end
|
||||||
|
|
||||||
if M.resize_window then
|
if M.resize_window then
|
||||||
|
|||||||
Reference in New Issue
Block a user