neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ba38f35d3e2f37c2289543e6e0c4451c679c5834
parent 836733dad8ca63a590eded1e3991444bac62b4b8
Author: dundargoc <33953936+dundargoc@users.noreply.github.com>
Date:   Sun,  5 Mar 2023 11:21:37 +0100

test: don't search entire repo for files

Searching the entire repo for a directory named "contrib" causes failure
if there happens to be another subdirectory with the name "contrib".
Instead, point directly to the correct contrib directory.
Diffstat:
Mtest/functional/lua/fs_spec.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/functional/lua/fs_spec.lua b/test/functional/lua/fs_spec.lua @@ -260,7 +260,7 @@ describe('vim.fs', function() ]], test_source_path), exec_lua([[ local dir = ... - local opts = { path = dir, limit = math.huge } + local opts = { path = dir .. "/contrib", limit = math.huge } return vim.tbl_map(vim.fs.basename, vim.fs.find(function(_, d) return d:match('[\\/]contrib$') end, opts)) ]], test_source_path)) end)