refactor(#2826): winnr->winid in view/globals, remove redundant get_winid and get_bufnr calls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user