repl: do not eat first line

for some reason first line was skipped
pull/1398/head
Vitaly Takmazov 2019-07-31 11:43:41 +03:00 committed by Alexander Medvednikov
parent ddb4f45b02
commit 9b45b9ce66
1 changed files with 2 additions and 2 deletions

View File

@ -1256,7 +1256,7 @@ fn run_repl() []string {
} }
} }
else { else {
for i:=0; i<vals.len-1; i++ { for i:=0; i < vals.len; i++ {
println(vals[i]) println(vals[i])
} }
} }
@ -1274,7 +1274,7 @@ fn run_repl() []string {
if s.contains('panic: ') { if s.contains('panic: ') {
if !s.contains('declared and not used') { if !s.contains('declared and not used') {
mut vals := s.split('\n') mut vals := s.split('\n')
for i:=1; i<vals.len; i++ { for i:=0; i < vals.len; i++ {
println(vals[i]) println(vals[i])
} }
} }