parent
7d8b296943
commit
a81875b24b
|
@ -1313,9 +1313,12 @@ fn run_repl() []string {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
line = line.trim_space()
|
line = line.trim_space()
|
||||||
if line == '' || line == 'exit' {
|
if line.len == -1 || line == '' || line == 'exit' {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
if line == '\n' {
|
||||||
|
continue
|
||||||
|
}
|
||||||
// Save the source only if the user is printing something,
|
// Save the source only if the user is printing something,
|
||||||
// but don't add this print call to the `lines` array,
|
// but don't add this print call to the `lines` array,
|
||||||
// so that it doesn't get called during the next print.
|
// so that it doesn't get called during the next print.
|
||||||
|
|
Loading…
Reference in New Issue