refactor(#2826): winnr->winid in view/globals, remove redundant get_winid and get_bufnr calls

This commit is contained in:
Alexander Courtis
2025-06-19 16:44:19 +10:00
parent 6e7ce8771b
commit b7e9789850
5 changed files with 59 additions and 55 deletions

View File

@@ -22,7 +22,7 @@ local function usable_win_ids()
local explorer = core.get_explorer()
local tabpage = vim.api.nvim_get_current_tabpage()
local win_ids = vim.api.nvim_tabpage_list_wins(tabpage)
local tree_winid = explorer and explorer.view:get_winnr(tabpage, "open-file.usable_win_ids")
local tree_winid = explorer and explorer.view:get_winid(tabpage, "open-file.usable_win_ids")
return vim.tbl_filter(function(id)
local bufid = vim.api.nvim_win_get_buf(id)