fix out of bounds with empty struct

This commit is contained in:
Daniel Gavin
2021-04-28 12:53:04 +02:00
parent 51b198aa56
commit 088f4b5039
2 changed files with 7 additions and 4 deletions
+1 -3
View File
@@ -487,9 +487,7 @@ visit_exprs :: proc(p: ^Printer, list: []^ast.Expr, add_comma := false, trailing
//Don't move the first expression, it looks bad
if i != 0 && force_newline {
newline_position(p, 1);
}
else if i != 0 {
} else if i != 0 {
move_line_limit(p, expr.pos, 1);
}