@@ -1518,7 +1518,8 @@ loadInputs inputs toline -- furthest line to read in input source files
15181518
15191519idrisMain :: [Opt] -> Idris ()
15201520idrisMain opts =
1521− do let inputs = opt getFile opts
1521+ do mapM_ setWidth (opt getConsoleWidth opts)
1522+ let inputs = opt getFile opts
15221523 let quiet = Quiet `elem` opts
15231524 let nobanner = NoBanner `elem` opts
15241525 let idesl = Idemode `elem` opts || IdemodeSocket `elem` opts
@@ -1533,6 +1534,7 @@ idrisMain opts =
15331534 let optimise = case opt getOptLevel opts of
15341535 [] -> 2
15351536 xs -> last xs
1537+
15361538 setOptLevel optimise
15371539 let outty = case opt getOutputTy opts of
15381540 [] -> if Interface `elem` opts then
@@ -1555,7 +1557,7 @@ idrisMain opts =
15551557 putIState (i { default_total = True })
15561558 setColourise $ not quiet && last (True : opt getColour opts)
15571559
1558− when (not runrepl) $ mapM_ setWidth (opt getConsoleWidth opts)
1560+
15591561
15601562 mapM_ addLangExt (opt getLanguageExt opts)
15611563 setREPL runrepl