mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-27 00:36:02 +08:00
Fix overlap check
This commit is contained in:
@@ -36,7 +36,7 @@ class Ranged a where
|
|||||||
end :: a -> Position
|
end :: a -> Position
|
||||||
overlap :: a -> a -> Bool
|
overlap :: a -> a -> Bool
|
||||||
overlap x y =
|
overlap x y =
|
||||||
(yStart >= xStart && yStart < xEnd) || (yStart < xStart && yEnd > xStart)
|
xEnd > yStart && yEnd > xStart
|
||||||
where
|
where
|
||||||
yStart = start y
|
yStart = start y
|
||||||
yEnd = end y
|
yEnd = end y
|
||||||
|
Reference in New Issue
Block a user