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

@@ -554,7 +554,7 @@ end
---nil on no explorer or invalid view win
---@return integer[]|nil
function Explorer:get_cursor_position()
local winnr = self.view:get_winnr(nil, "Explorer:get_cursor_position")
local winnr = self.view:get_winid(nil, "Explorer:get_cursor_position")
if not winnr or not vim.api.nvim_win_is_valid(winnr) then
return
end