Forgot to reset offset.

This commit is contained in:
Adam Harrison 2021-09-10 23:09:33 -04:00
parent 67032f72ac
commit 425a4f600b
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ function DocView:draw_line_text(idx, x, y)
renderer.draw_text(font, string.rep("·", e - s + 1), tx, ty, color)
offset = e + 1
end
offset = 1
while true do
s, e = text:find("\t", offset)
if not s then break end