go.nvim/lua/go/ts/utils.lua

20 lines
325 B
Lua
Raw Normal View History

2021-03-10 12:15:06 +00:00
local M = {}
M.intersects = function(row, col, sRow, sCol, eRow, eCol)
-- print(row, col, sRow, sCol, eRow, eCol)
if sRow > row or eRow < row then
return false
end
if sRow == row and sCol > col then
return false
end
if eRow == row and eCol < col then
return false
end
return true
end
return M