diff --git a/tools/vrepl.v b/tools/vrepl.v index 18fd3206af..6ea5877cc8 100644 --- a/tools/vrepl.v +++ b/tools/vrepl.v @@ -145,10 +145,7 @@ pub fn run_repl() []string { rerror(err) return []string } - vals := s.output.split('\n') - for i:=0; i < vals.len; i++ { - println(vals[i]) - } + print_output(s) } else { mut temp_line := r.line @@ -161,6 +158,7 @@ pub fn run_repl() []string { temp_source_code := r.functions.join('\n') + r.lines.join('\n') + '\n' + r.temp_lines.join('\n') + '\n' + temp_line os.write_file(temp_file, temp_source_code) s := os.exec('"$vexe" run $temp_file -repl') or { + println("SDFSDF") rerror(err) return []string } @@ -178,15 +176,25 @@ pub fn run_repl() []string { r.temp_lines.delete(0) } } - vals := s.output.split('\n') - for i:=0; i