diff options
| author | emmanueltouzery <etouzery@gmail.com> | 2023-01-07 09:31:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-07 11:31:11 +0300 |
| commit | 04af51dbfb17c2afa0b8d82b0e842e0638201ca9 (patch) | |
| tree | 130d81fb23cb896ce0abb1adde4d662ce619c28b /lua/telescope | |
| parent | cd67e819e453643b818363e6b573484c8e2e41b0 (diff) | |
fix(old_files): opts.cwd_only includes similarly named dirs (#2308)
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/builtin/__internal.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index 3a30dd3..289db40 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -524,7 +524,7 @@ internal.oldfiles = function(opts) end if opts.cwd_only then - local cwd = vim.loop.cwd() + local cwd = vim.loop.cwd() .. "/" cwd = cwd:gsub([[\]], [[\\]]) results = vim.tbl_filter(function(file) return vim.fn.matchstrpos(file, cwd)[2] ~= -1 |
