Terminal: Ignore rightChar at end of line

This commit is contained in:
mbays
2024-08-17 12:36:06 +02:00
committed by Frans de Jonge
parent 40034743ad
commit f6ee0aed4f

View File

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