mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
Terminal: Add newline when wrapping
Required to maintain "tty-matrix".
This commit is contained in:
parent
c2dbd7bf88
commit
d097dc0f8c
@ -546,7 +546,8 @@ function TermInputText:addChars(chars, skip_callback, skip_table_concat)
|
||||
if self.charlist[self.charpos] == "\n" then
|
||||
self.charpos = self.charpos + 1
|
||||
if not self.charlist[self.charpos] then
|
||||
insertSpaces(self.maxc)
|
||||
local p = insertSpaces(self.maxc)
|
||||
table.insert(self.charlist, p, "\n")
|
||||
end
|
||||
end
|
||||
else
|
||||
@ -598,7 +599,6 @@ end
|
||||
-- @param maxr number of rows
|
||||
-- @param maxc number of columns
|
||||
-- @param clear if true, fill the matrix ' '
|
||||
-- @fixme: may invalidate store_pos_dec and store_pos_sco
|
||||
function TermInputText:formatTerminal(clear)
|
||||
local i = self.store_position or 1
|
||||
-- so we end up in a maxr x maxc array for positioning
|
||||
|
Loading…
Reference in New Issue
Block a user