mirror of
https://github.com/vlang/v.git
synced 2025-09-08 23:07:19 -04:00
vrepl: cleanup in vrepl.v (#21834)
This commit is contained in:
parent
1229ccf98a
commit
70e78cc766
@ -54,12 +54,6 @@ const possible_statement_patterns = [
|
||||
'#include ',
|
||||
'for ',
|
||||
'or ',
|
||||
'insert(',
|
||||
'delete(',
|
||||
'prepend(',
|
||||
'sort(',
|
||||
'clear(',
|
||||
'trim(',
|
||||
' as ',
|
||||
]
|
||||
|
||||
@ -508,9 +502,7 @@ fn run_repl(workdir string, vrepl_prefix string) int {
|
||||
r.lines << r.line
|
||||
}
|
||||
} else {
|
||||
for r.temp_lines.len > 0 {
|
||||
r.temp_lines.delete(0)
|
||||
}
|
||||
r.temp_lines.clear()
|
||||
}
|
||||
if r.is_pin {
|
||||
r.pin()
|
||||
|
Loading…
x
Reference in New Issue
Block a user