Selaa lähdekoodia

* Flush output in case of redir

Michaël Van Canneyt 2 kuukautta sitten
vanhempi
commit
cd1251bf00
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      compiler/comphook.pas

+ 4 - 1
compiler/comphook.pas

@@ -397,7 +397,10 @@ begin
      else
        begin
          if status.use_redir then
-           writeln(status.redirfile,MsgTimeStr+MsgLocStr+MsgTypeStr+s)
+           begin
+           writeln(status.redirfile,MsgTimeStr+MsgLocStr+MsgTypeStr+s);
+           flush(status.redirfile);
+           end
          else
            begin
              write(MsgTimeStr+MsgLocStr);