2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

Terminal: Remove unnecessary expensive textbox re-inits

This commit is contained in:
mbays 2024-08-17 12:10:51 +02:00 committed by Frans de Jonge
parent ffd75eb8f1
commit f86482c210

View File

@ -651,7 +651,6 @@ function TermInputText:clearToEndOfScreen()
pos = pos + 1
end
self.is_text_edited = true
self:initTextBox(table.concat(self.charlist))
-- self:moveCursorToCharPos(self.charpos)
end
@ -665,7 +664,6 @@ function TermInputText:delToEndOfLine()
self.charlist[cur_pos] = " "
cur_pos = cur_pos + 1
end
self:initTextBox(table.concat(self.charlist))
end
function TermInputText:reverseLineFeed(skip_callback)