fix: preserve alternate buffer when using floating window (#20)

This commit is contained in:
Steven Arcangeli 2023-01-08 22:12:17 -08:00
parent e4c4110022
commit d8a1e7ca4e
2 changed files with 34 additions and 1 deletions

View file

@ -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,