mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
feat(lua): support vim.Range:has(vim.pos) #37879
This commit is contained in:
@@ -82,4 +82,13 @@ describe('vim.range', function()
|
||||
end_ = { row = 0, col = 36, buf = buf },
|
||||
}, range)
|
||||
end)
|
||||
|
||||
it('checks whether a range contains a position', function()
|
||||
eq(
|
||||
true,
|
||||
exec_lua(function()
|
||||
return vim.range(0, 0, 1, 5):has(vim.pos(0, 1))
|
||||
end)
|
||||
)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user