fix: preserve alternate buffer when using floating window (#20)
This commit is contained in:
parent
e4c4110022
commit
d8a1e7ca4e
2 changed files with 34 additions and 1 deletions
|
|
@ -388,8 +388,10 @@ M.select = function(opts)
|
|||
vertical = opts.vertical,
|
||||
horizontal = opts.horizontal,
|
||||
split = opts.split,
|
||||
keepalt = true,
|
||||
}
|
||||
if vim.tbl_isempty(mods) then
|
||||
mods = nil
|
||||
end
|
||||
local cmd = opts.split and "split" or "edit"
|
||||
vim.cmd({
|
||||
cmd = cmd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue