mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24:52 +01:00
fix: open buffers in last active window
This commit is contained in:
parent
ca3f6f210a
commit
9341095b68
1 changed files with 2 additions and 1 deletions
|
@ -44,8 +44,9 @@ M.open = function(state, path, extra)
|
|||
end
|
||||
if selected.type == "buffer" then
|
||||
local window = utils.get_appropriate_window(state)
|
||||
local buf = vim.api.nvim_win_get_buf(window)
|
||||
vim.api.nvim_set_current_win(window)
|
||||
buf_manager.attach(selected.name)
|
||||
buf_manager.attach(selected.name, buf)
|
||||
return
|
||||
end
|
||||
if selected.type == "user" then
|
||||
|
|
Loading…
Reference in a new issue