fix: remaining type errors
This commit is contained in:
parent
ebf9337b32
commit
8f7807946a
7 changed files with 64 additions and 44 deletions
|
|
@ -504,6 +504,7 @@ M.try_write_changes = function(confirm)
|
|||
{ all_errors[curbuf][1].lnum + 1, all_errors[curbuf][1].col }
|
||||
)
|
||||
else
|
||||
---@diagnostic disable-next-line: param-type-mismatch
|
||||
local bufnr, errs = next(pairs(all_errors))
|
||||
vim.api.nvim_win_set_buf(0, bufnr)
|
||||
pcall(vim.api.nvim_win_set_cursor, 0, { errs[1].lnum + 1, errs[1].col })
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ end
|
|||
---Add all actions affecting children of the url
|
||||
---@param url string
|
||||
---@param ret oil.InternalEntry[]
|
||||
---@param filter nil|fun(entry: oil.InternalEntry): boolean
|
||||
---@param filter nil|fun(entry: oil.Action): boolean
|
||||
function Trie:accum_children_of(url, ret, filter)
|
||||
local pieces = self:_url_to_path_pieces(url)
|
||||
local current = self.root
|
||||
|
|
@ -136,7 +136,7 @@ end
|
|||
---Add all actions at a specific path
|
||||
---@param url string
|
||||
---@param ret oil.InternalEntry[]
|
||||
---@param filter? fun(entry: oil.InternalEntry): boolean
|
||||
---@param filter? fun(entry: oil.Action): boolean
|
||||
function Trie:accum_actions_at(url, ret, filter)
|
||||
local pieces = self:_url_to_path_pieces(url)
|
||||
local current = self.root
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue