Merge remote-tracking branch 'origin/master' into 2826-multi-instance-view-amc

This commit is contained in:
Alexander Courtis
2025-04-21 09:25:27 +10:00
4 changed files with 20 additions and 2 deletions

View File

@@ -334,6 +334,7 @@ function View:open(options)
local profile = log.profile_start("view open")
events._dispatch_on_tree_pre_open()
self:create_buffer()
self:open_window()
self:resize()
@@ -462,6 +463,7 @@ end
---@param opts OpenInWinOpts|nil
function View:open_in_win(opts)
opts = opts or { hijack_current_buf = true, resize = true }
events._dispatch_on_tree_pre_open()
if opts.winid and vim.api.nvim_win_is_valid(opts.winid) then
vim.api.nvim_set_current_win(opts.winid)
end