From c9633cf55e3ca18c79e96281751eddac8ddab45f Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Wed, 13 Aug 2014 06:01:20 +0200 Subject: [PATCH] fix parameters passed to directly runable module were not split --- src/ce_main.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ce_main.pas b/src/ce_main.pas index aba0f599..f0694d25 100644 --- a/src/ce_main.pas +++ b/src/ce_main.pas @@ -926,9 +926,9 @@ begin '' + LineEnding + 'void main(string args[])' + LineEnding + '{' + LineEnding + - ' writeln("this is just a `toy feature`");' + LineEnding + - ' writeln;' + LineEnding + - ' writeln("coedit saves a temp d module before compiling it and running it...");' + LineEnding + + ' // this file can be directly executed using menu file/compile & run' + LineEnding + + ' // phobos and libman imports are allowed' + LineEnding + + ' writeln("hello runnable module");' + LineEnding + '}'; end; @@ -1196,7 +1196,7 @@ begin fMesgWidg.addCeInf(editor.fileName + ' successfully compiled', mcEditor ); runproc.Options := [poStderrToOutPut, poUsePipes]; runproc.CurrentDirectory := extractFilePath(runProc.Executable); - runproc.Parameters.Text := runArgs; + runproc.Parameters.DelimitedText := runArgs; runproc.Executable := fname {$IFDEF WINDOWS}+ '.exe'{$ENDIF}; runproc.Execute; repeat ProcessOutputToMsg(runproc, mcEditor) until not runproc.Running;