Forgot to reset offset.
This commit is contained in:
parent
67032f72ac
commit
425a4f600b
|
@ -18,6 +18,7 @@ function DocView:draw_line_text(idx, x, y)
|
||||||
renderer.draw_text(font, string.rep("·", e - s + 1), tx, ty, color)
|
renderer.draw_text(font, string.rep("·", e - s + 1), tx, ty, color)
|
||||||
offset = e + 1
|
offset = e + 1
|
||||||
end
|
end
|
||||||
|
offset = 1
|
||||||
while true do
|
while true do
|
||||||
s, e = text:find("\t", offset)
|
s, e = text:find("\t", offset)
|
||||||
if not s then break end
|
if not s then break end
|
||||||
|
|
Loading…
Reference in New Issue