go.nvim/lua/go/ts/utils.lua
2021-07-17 01:58:44 +10:00

21 lines
364 B
Lua

local M = {}
-- local ulog = require("go.utils").log
M.intersects = function(row, col, sRow, sCol, eRow, eCol)
-- ulog(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