mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: fix exiting the v repl, after just Enter (regression happened in bf00ac6
)
This commit is contained in:
parent
1d9835f0e4
commit
8ee1667a9a
@ -312,7 +312,7 @@ fn run_repl(workdir string, vrepl_prefix string) int {
|
|||||||
if line == '' && oline.ends_with('\n') {
|
if line == '' && oline.ends_with('\n') {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if line.len <= -1 || line == '' || line == 'exit' {
|
if line.len <= -1 || line == 'exit' {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if exit_pos := line.index('exit') {
|
if exit_pos := line.index('exit') {
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
println('hi')
|
||||||
|
===output===
|
||||||
|
hi
|
Loading…
Reference in New Issue
Block a user