vfmt: fix `for x; y; i++ \n {}`

pull/5622/head
Delyan Angelov 2020-07-02 15:29:52 +03:00
parent 37d51e8d74
commit 05e11f6336
1 changed files with 1 additions and 0 deletions

View File

@ -345,6 +345,7 @@ pub fn (mut f Fmt) stmt(node ast.Stmt) {
f.expr(it.cond) f.expr(it.cond)
f.write('; ') f.write('; ')
f.stmt(it.inc) f.stmt(it.inc)
f.remove_new_line()
f.writeln(' {') f.writeln(' {')
f.stmts(it.stmts) f.stmts(it.stmts)
f.writeln('}') f.writeln('}')