mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-03 03:21:36 +00:00
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. (Commitb3ff5f33) (cherry picked from commit02a60a8396)
This commit is contained in:
committed by
Simon Hauser
parent
588e26ff9f
commit
ac05f165e9
@@ -543,9 +543,9 @@ internal.oldfiles = function(opts)
|
||||
end
|
||||
end
|
||||
|
||||
if opts.cwd_only then
|
||||
local cwd = vim.loop.cwd() .. utils.get_separator()
|
||||
cwd = cwd:gsub([[\]], [[\\]])
|
||||
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