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

@@ -15,7 +15,7 @@ function M.set_target_win()
local id = vim.api.nvim_get_current_win()
if explorer and id == explorer.view:get_winnr(nil, "lib.set_target_win") then
if explorer and id == explorer.view:get_winid(nil, "lib.set_target_win") then
M.target_winid = 0
return
end