We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 679e0ec commit f51d4e8Copy full SHA for f51d4e8
src/Ide/Plugin/Ormolu.hs
@@ -57,7 +57,7 @@ provider _lf ideState typ contents fp _ = do
57
58
let
59
fullRegion = RegionIndices Nothing Nothing
60
- rangeRegion s e = RegionIndices (Just s) (Just e)
+ rangeRegion s e = RegionIndices (Just $ s + 1) (Just $ e + 1)
61
mkConf o region = defaultConfig { cfgDynOptions = o, cfgRegion = region }
62
fmt :: T.Text -> Config RegionIndices -> IO (Either OrmoluException T.Text)
63
fmt cont conf =
0 commit comments