fix(prevent_buffer_override): Go to next buffer after switching windows

Else it goes straight to the first window
This commit is contained in:
simrat39
2021-04-22 20:27:17 -07:00
parent a6a38848d9
commit b3344e9f97

View File

@@ -114,8 +114,8 @@ function M._prevent_buffer_override()
end
vim.cmd("buffer " .. curbuf)
vim.cmd("bnext")
vim.cmd("wincmd r")
vim.cmd("bprev")
end)
end