@@ -669,10 +669,10 @@ edit f orig
669669 env <- runIO $ getEnvironment
670670 let editor = getEditor env
671671 let line = case errSpan i of
672− Just l -> " +" ++ show (fst (fc_start l)) ++ " "
673− Nothing -> " "
674− let cmd = editor ++ line ++ fixName f
675− runIO $ system cmd
672+ Just l -> ['+' : show (fst (fc_start l))]
673+ Nothing -> []
674+ let args = line ++ [fixName f]
675+ runIO $ rawSystem editor args
676676 clearErr
677677 putIState $ orig { idris_options = idris_options i
678678 , idris_colourTheme = idris_colourTheme i
@@ -1069,7 +1069,7 @@ process fn Execute
10691069 ir <- compile t tmpn m
10701070 runIO $ generate t (head (idris_imported ist)) ir
10711071 case idris_outputmode ist of
1072− RawOutput h -> do runIO $ system tmpn
1072+ RawOutput h -> do runIO $ rawSystem tmpn []
10731073 return ()
10741074 IdeSlave n h -> runIO . hPutStrLn h $
10751075 IdeSlave.convSExp "run-program" tmpn n)