From 425a4f600bdba3324e47c5a9282333fcdd3d0906 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 10 Sep 2021 23:09:33 -0400 Subject: [PATCH] Forgot to reset offset. --- data/plugins/drawwhitespace.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/data/plugins/drawwhitespace.lua b/data/plugins/drawwhitespace.lua index d6700615..da9d1b12 100644 --- a/data/plugins/drawwhitespace.lua +++ b/data/plugins/drawwhitespace.lua @@ -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