fix(oldfiles): use path separator from builtin utils in cwd_only (#2340)

This commit is contained in:
Hasan Mahmud
2023-01-22 14:18:34 +06:00
committed by GitHub
parent 0e56ea028d
commit 83eb2f9756

View File

@@ -524,7 +524,7 @@ internal.oldfiles = function(opts)
end
if opts.cwd_only then
local cwd = vim.loop.cwd() .. "/"
local cwd = vim.loop.cwd() .. utils.get_separator()
cwd = cwd:gsub([[\]], [[\\]])
results = vim.tbl_filter(function(file)
return vim.fn.matchstrpos(file, cwd)[2] ~= -1