diff --git a/src/ShellCheck/Fixer.hs b/src/ShellCheck/Fixer.hs index 78abfeb..2a96f79 100644 --- a/src/ShellCheck/Fixer.hs +++ b/src/ShellCheck/Fixer.hs @@ -10,7 +10,7 @@ class Ranged a where end :: a -> Position overlap :: a -> a -> Bool overlap x y = - (yStart >= xStart && yStart < xEnd) || (yStart < xStart && yEnd > xStart) + (yStart >= xStart && yStart <= xEnd) || (yStart < xStart && yEnd > xStart) where yStart = start y yEnd = end y