fix: set alternate when using floating windows (#526)

This commit is contained in:
David Marchante 2024-12-20 23:18:49 -05:00 committed by GitHub
parent 78ab7ca107
commit c5f7c56644
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View file

@ -720,7 +720,7 @@ M.select = function(opts, callback)
vertical = opts.vertical,
horizontal = opts.horizontal,
split = opts.split,
keepalt = true,
keepalt = false,
}
local filebufnr = vim.fn.bufadd(normalized_url)
local entry_is_file = not vim.endswith(normalized_url, "/")