From 8dfe21ae8290475ced929e22a564ad3f6f27d57a Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 12 Jul 2026 13:20:12 +0200 Subject: [PATCH] tests(indent): adapt scandir to nightly changes Problem: `vim.fs.find` on Nvim 0.13 changed its return value to also return errors (if any), which broke its use for building a list of files in directories (since the empty error list got included). Solution: Only capture first return value. --- tests/indent/common.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/indent/common.lua b/tests/indent/common.lua index ccc126870..61a534ebd 100644 --- a/tests/indent/common.lua +++ b/tests/indent/common.lua @@ -182,9 +182,9 @@ function Runner:whole_file(dirs, opts) return dir end, dirs) local scandir = function(dir) - return vim.fs.find(function() + return (vim.fs.find(function() return true - end, { path = dir, limit = math.huge }) + end, { path = dir, limit = math.huge })) end local files = vim.iter(dirs):map(scandir):flatten() for _, file in files:enumerate() do