diff --git a/plugins/terminal.koplugin/terminputtext.lua b/plugins/terminal.koplugin/terminputtext.lua index 7cbb6c8ca..a27047327 100644 --- a/plugins/terminal.koplugin/terminputtext.lua +++ b/plugins/terminal.koplugin/terminputtext.lua @@ -712,7 +712,7 @@ function TermInputText:rightChar(skip_callback) end if self.charpos > #self.charlist then return end local right_char = self.charlist[self.charpos + 1] - if not right_char and right_char == "\n" then + if not right_char or right_char == "\n" then return end InputText.rightChar(self)