diff options
| author | Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> | 2021-05-08 12:38:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 13:38:40 +0200 |
| commit | 144c761e035f37943aef7e83d59482690c26f687 (patch) | |
| tree | ef22e1880d3ec2d57d69bff6cc182dfe0765b33b /lua | |
| parent | bc6385be31359866729d63d759cf0f6b5b4cd814 (diff) | |
fix: oldfiles cwd_only that include backslashes (windows) (#820)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin/internal.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index 5164245..9e1f26c 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -251,6 +251,7 @@ internal.oldfiles = function(opts) if opts.cwd_only then local cwd = vim.loop.cwd() + cwd = cwd:gsub([[\]],[[\\]]) results = vim.tbl_filter(function(file) return vim.fn.matchstrpos(file, cwd)[2] ~= -1 end, results) |
