diff --git a/src/Ormolu/Processing/Preprocess.hs b/src/Ormolu/Processing/Preprocess.hs index 2486e2a9..a5cb5bdb 100644 --- a/src/Ormolu/Processing/Preprocess.hs +++ b/src/Ormolu/Processing/Preprocess.hs @@ -85,7 +85,7 @@ preprocess cppEnabled region rawInput = rawSnippetsAndRegionsToFormat interleave [] bs = bs interleave (a : as) bs = a : interleave bs as - xs !!? i = if A.bounds rawLines `A.inRange` i then Just $ xs A.! i else Nothing + xs !!? i = if A.bounds xs `A.inRange` i then Just $ xs A.! i else Nothing -- | All lines we are not supposed to format, and a set of replacements -- for specific lines.