fix(_prevent_buffer_override): Only cycle windows if we have less than two
* kinda weird fix for closing the qf list making everything go wack
This commit is contained in:
@@ -119,8 +119,10 @@ function M._prevent_buffer_override()
|
||||
end
|
||||
|
||||
vim.cmd("buffer " .. curbuf)
|
||||
vim.cmd("wincmd r")
|
||||
vim.cmd("bprev")
|
||||
if #wins < 2 then
|
||||
vim.cmd("wincmd r")
|
||||
vim.cmd("bprev")
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user