fix(builtin.oldfiles): fix cwd_only for windows (#3096)

Remove backslash escaping in oldfiles picker, which was needed
before the code was changed to use substring comparison instead of
regex matching. (Commit b3ff5f33)
This commit is contained in:
Christoph Bier
2024-05-12 20:30:53 +02:00
committed by GitHub
parent fac83a556e
commit 02a60a8396

View File

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