forked from mtcontrib/digiterms
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
|
elseif b >= 0xC2 then pos = pos + 2
|
||||||
else pos = pos + 1 end-- Invalid char
|
else pos = pos + 1 end-- Invalid char
|
||||||
end
|
end
|
||||||
if pos - 1 > start then
|
if pos - 1 >= start then
|
||||||
push_line(lines, text:sub(start, pos - 1), maxlines)
|
push_line(lines, text:sub(start, pos - 1), maxlines)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user