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:
parent
ddb4f45b02
commit
9b45b9ce66
@ -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])
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user