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:
@@ -312,7 +312,7 @@ fn run_repl(workdir string, vrepl_prefix string) int {
|
||||
if line == '' && oline.ends_with('\n') {
|
||||
continue
|
||||
}
|
||||
if line.len <= -1 || line == '' || line == 'exit' {
|
||||
if line.len <= -1 || line == 'exit' {
|
||||
break
|
||||
}
|
||||
if exit_pos := line.index('exit') {
|
||||
|
Reference in New Issue
Block a user