fix(builtin.oldfiles): no output when cwd is root (#3271)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user