mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix: deal with the case that bufname is nil (#147)
ref https://github.com/nvim-telescope/telescope.nvim/issues/2552#issuecomment-1722543221
This commit is contained in:
parent
2119da4e3d
commit
eaaabc90ed
@ -34,10 +34,10 @@ FS.new = function(config)
|
||||
return self
|
||||
end
|
||||
|
||||
---@param path string
|
||||
---@param path string?
|
||||
---@return boolean
|
||||
function FS:is_valid_path(path)
|
||||
return Path:new(path):is_file() and not self:is_ignored(path)
|
||||
return not not path and Path:new(path):is_file() and not self:is_ignored(path)
|
||||
end
|
||||
|
||||
---@param path string
|
||||
|
||||
Loading…
Reference in New Issue
Block a user