From f6ee0aed4faef94add9a280abdc16639f229aed6 Mon Sep 17 00:00:00 2001 From: mbays Date: Sat, 17 Aug 2024 12:36:06 +0200 Subject: [PATCH] Terminal: Ignore rightChar at end of line --- plugins/terminal.koplugin/terminputtext.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)