mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
term: fix #4066
This commit is contained in:
parent
bee8972632
commit
ed42b864c1
@ -152,13 +152,13 @@ pub fn run_repl(workdir string, vrepl_prefix string) []string {
|
||||
mut temp_line := r.line
|
||||
mut temp_flag := false
|
||||
func_call := r.function_call(r.line)
|
||||
if !(
|
||||
r.line.contains(' ') ||
|
||||
r.line.contains(':') ||
|
||||
r.line.contains('=') ||
|
||||
r.line.contains(',') ||
|
||||
r.line.ends_with('++') ||
|
||||
r.line.ends_with('--') ||
|
||||
filter_line := r.line.replace(r.line.find_between('\'', '\''), '').replace(r.line.find_between('"', '"'), '')
|
||||
if !(filter_line.contains(':') ||
|
||||
filter_line.contains('=') ||
|
||||
filter_line.contains(',') ||
|
||||
filter_line.contains('++') ||
|
||||
filter_line.contains('--') ||
|
||||
filter_line.starts_with('import') ||
|
||||
r.line == '') && !func_call {
|
||||
temp_line = 'println($r.line)'
|
||||
temp_flag = true
|
||||
|
Loading…
Reference in New Issue
Block a user