mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Terminal: Ignore rightChar at end of line
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user