Skip to content

Commit

Permalink
fix(builtin.oldfiles): fix cwd_only for windows (#3096)
Browse files Browse the repository at this point in the history
Remove backslash escaping in oldfiles picker, which was needed
before the code was changed to use substring comparison instead of
regex matching. (Commit b3ff5f3)
  • Loading branch information
chribi committed May 12, 2024
1 parent fac83a5 commit 02a60a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lua/telescope/builtin/__internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,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()
cwd = cwd:gsub([[\]], [[\\]])
results = vim.tbl_filter(function(file)
return buf_in_cwd(file, cwd)
end, results)
Expand Down

0 comments on commit 02a60a8

Please sign in to comment.