1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

repl: do not eat first line

for some reason first line was skipped
This commit is contained in:
Vitaly Takmazov 2019-07-31 11:43:41 +03:00 committed by Alexander Medvednikov
parent ddb4f45b02
commit 9b45b9ce66

View File

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