Skip to content

Commit ee438c3

Browse files
committed
test: Correct version number check
1 parent 4a8c15f commit ee438c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/treesitter.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ describe("handle treesitter blocks", function()
285285
end)
286286

287287
if
288-
vim.version.gt(vim.version(), { 0, 8, 0 })
289-
and vim.version.lt(vim.version(), { 0, 10, 0 })
288+
vim.fn.has("nvim-0.10") == 1
289+
or (vim.fn.has("nvim-0.8") == 1 and vim.fn.has("nvim-0.9") ~= 1)
290290
then
291291
-- These tests seem to fail on NeoVim 0.9.x - I think there's some kind
292292
-- of parser issue

0 commit comments

Comments
 (0)