[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

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()