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:
parent
ffd75eb8f1
commit
f86482c210
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user