fix(builtin.oldfiles): no output when cwd is root (#3271)

This commit is contained in:
Ronan Dalton
2024-09-13 13:12:33 +12:00
committed by GitHub
parent f377c772d9
commit 927c10f748

View File

@@ -554,7 +554,6 @@ internal.oldfiles = function(opts)
if opts.cwd_only or opts.cwd then
local cwd = opts.cwd_only and vim.loop.cwd() or opts.cwd
cwd = cwd .. utils.get_separator()
results = vim.tbl_filter(function(file)
return buf_in_cwd(file, cwd)
end, results)