mirror of
https://github.com/pyrollo/digiterms.git
synced 2024-11-26 23:53:44 +01:00
Fixed bug preventing one char lines from being displayed
This commit is contained in:
parent
77b60b607d
commit
04d32581d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user