mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix: do nothing when v:oldfiles are empty (#116)
This commit is contained in:
parent
54de6e45b9
commit
251fdb32d2
@ -60,6 +60,9 @@ end
|
||||
---@param paths string[]
|
||||
---@return integer
|
||||
function Database:insert_files(paths)
|
||||
if #paths == 0 then
|
||||
return 0
|
||||
end
|
||||
---@param path string
|
||||
return self.sqlite.files:insert(vim.tbl_map(function(path)
|
||||
return { path = path, count = 0 } -- TODO: remove when sql.nvim#97 is closed
|
||||
|
||||
Loading…
Reference in New Issue
Block a user