diff options
Diffstat (limited to 'src/io/buffer.nim')
-rw-r--r-- | src/io/buffer.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io/buffer.nim b/src/io/buffer.nim index a33c88ff..6288bf88 100644 --- a/src/io/buffer.nim +++ b/src/io/buffer.nim @@ -619,6 +619,7 @@ proc renderPlainText*(buffer: Buffer, text: string) = buffer.setText(0, y, line.toRunes()) proc renderDocument*(buffer: Buffer) = + buffer.clearText() var stack: seq[CSSBox] stack.add(buffer.document.root.box) while stack.len > 0: |