diff options
author | bptato <nincsnevem662@gmail.com> | 2022-01-30 10:56:15 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-01-30 10:56:15 +0100 |
commit | 87a47d56cca6ded5f5cd900a9bff2e4d8292629e (patch) | |
tree | 93cdc98e998575d1cfb7637f9cec33b7533b5cb3 /src/render | |
parent | fb017f273dab1d63764269ca02700316919522f4 (diff) | |
download | chawan-87a47d56cca6ded5f5cd900a9bff2e4d8292629e.tar.gz |
Implement list-style-position
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/renderdocument.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim index 8c34e273..e6020c6e 100644 --- a/src/render/renderdocument.nim +++ b/src/render/renderdocument.nim @@ -32,7 +32,7 @@ proc setRowWord(lines: var FlexibleGrid, word: InlineWord, x, y: int, term: Term var x = (x + word.relx) div term.ppc var i = 0 - while x < 0: + while x < 0 and i < word.str.len: fastRuneAt(word.str, i, r) x += r.width() let linestr = word.str.substr(i) |