return early

This commit is contained in:
Ryan Oldenburg 2021-05-11 11:38:43 -05:00
parent f852d33ada
commit a34831e52c

View file

@ -169,6 +169,9 @@ proc typeset*(
result.fonts.add(span.font)
start += runes.len
if result.runes.len == 0:
return
result.positions.setLen(result.runes.len)
result.selectionRects.setLen(result.runes.len)