2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00

[plugin, Terminal] fix crash on clear screen (#9119)

This fixes https://github.com/koreader/koreader/issues/9108#issuecomment-1132243061

Tapping on clear screen during a running program like top, let's KOReader crash.
This commit is contained in:
zwim 2022-06-07 21:06:40 +02:00 committed by GitHub
parent 73b2b38954
commit 5bcd3d0962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,14 +348,6 @@ function Terminal:generateInputDialog()
end,
},
{
text = "", --clear
callback = function()
self.history = ""
self.input = {}
self.input_dialog:setInputText("$ ")
end,
},
{
text = "",
callback = function()
self.input_widget:upLine()