term: fix #4066
parent
bee8972632
commit
ed42b864c1
|
@ -152,14 +152,14 @@ 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('--') ||
|
||||
r.line == '') && !func_call {
|
||||
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