From 04d32581d37cb5ff060f93228059e57cfc96b653 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Fri, 1 Feb 2019 10:26:49 +0100 Subject: [PATCH] Fixed bug preventing one char lines from being displayed --- functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.lua b/functions.lua index f6f2bef..1446486 100644 --- a/functions.lua +++ b/functions.lua @@ -77,7 +77,7 @@ local function push_text(lines, text, maxlines, maxcolumns) elseif b >= 0xC2 then pos = pos + 2 else pos = pos + 1 end-- Invalid char end - if pos - 1 > start then + if pos - 1 >= start then push_line(lines, text:sub(start, pos - 1), maxlines) end end