This commit is contained in:
Grace Petryk 2025-05-05 19:31:28 -07:00
parent cdafb14f03
commit cb37953cdc
2 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ local function wrap_node_or_nil(fn)
end end
end end
---Invoke a member"s method on the singleton explorer. ---Invoke a member's method on the singleton explorer.
---Print error when setup not called. ---Print error when setup not called.
---@param explorer_member string explorer member name ---@param explorer_member string explorer member name
---@param member_method string method name to invoke on member ---@param member_method string method name to invoke on member
@ -120,7 +120,7 @@ local function wrap_explorer_filter_function(filter_api_method)
end) end)
end end
---Invoke a member"s method on the singleton explorer. ---Invoke a member's method on the singleton explorer.
---Print error when setup not called. ---Print error when setup not called.
---@param explorer_member string explorer member name ---@param explorer_member string explorer member name
---@param member_method string method name to invoke on member ---@param member_method string method name to invoke on member

View File

@ -191,13 +191,13 @@ function Filters:bookmark(path)
end end
if path_type == "directory" then if path_type == "directory" then
-- check if path is mark"s parent -- check if path is mark's parent
if vim.fn.stridx(mark, mark_parent) == 0 then if vim.fn.stridx(mark, mark_parent) == 0 then
return false return false
end end
end end
if mark_type == "directory" then if mark_type == "directory" then
-- check if mark is path"s parent -- check if mark is path's parent
local path_parent = utils.path_add_trailing(mark) local path_parent = utils.path_add_trailing(mark)
if vim.fn.stridx(path, path_parent) == 0 then if vim.fn.stridx(path, path_parent) == 0 then
return false return false
@ -211,7 +211,7 @@ end
---@param path string ---@param path string
---@return boolean ---@return boolean
function Filters:custom(path) function Filters:custom(path)
-- filter user"s custom function -- filter user's custom function
if type(self.custom_function) == "function" then if type(self.custom_function) == "function" then
return self.custom_function(path) return self.custom_function(path)
end end