Skip to content

Commit

Permalink
Fixed bug preventing one char lines from being displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrollo committed Feb 1, 2019
1 parent 77b60b6 commit 04d3258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04d3258

Please sign in to comment.