aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2026-07-12 13:20:12 +0200
committerChristian Clason <ch.clason+github@icloud.com>2026-07-18 22:23:55 +0200
commit8dfe21ae8290475ced929e22a564ad3f6f27d57a (patch)
treec2d3fab0c7679818b5feb82515d5741ee5cb9935
parentfeat(jinja,jinja_inline)!: update parser and queries (diff)
downloadnvim-treesitter-8dfe21ae8290475ced929e22a564ad3f6f27d57a.tar
nvim-treesitter-8dfe21ae8290475ced929e22a564ad3f6f27d57a.tar.gz
nvim-treesitter-8dfe21ae8290475ced929e22a564ad3f6f27d57a.tar.bz2
nvim-treesitter-8dfe21ae8290475ced929e22a564ad3f6f27d57a.tar.lz
nvim-treesitter-8dfe21ae8290475ced929e22a564ad3f6f27d57a.tar.xz
nvim-treesitter-8dfe21ae8290475ced929e22a564ad3f6f27d57a.tar.zst
nvim-treesitter-8dfe21ae8290475ced929e22a564ad3f6f27d57a.zip
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.
-rw-r--r--tests/indent/common.lua4
1 files 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