Skip to content

Commit

Permalink
vrepl: cleanup in vrepl.v
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Jul 9, 2024
1 parent 66ea826 commit 6085c9e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cmd/tools/vrepl.v
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ const possible_statement_patterns = [
'#include ',
'for ',
'or ',
'insert(',
'delete(',
'prepend(',
'sort(',
'clear(',
'trim(',
' as ',
]

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 6085c9e

Please sign in to comment.