From 84ed68ba82cddbedb406eb5ed96a21f79fbaec30 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sat, 31 Aug 2024 10:48:08 +0300 Subject: [PATCH] inputtext: fix deleting a word by backspace swipe north --- frontend/ui/widget/inputtext.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/ui/widget/inputtext.lua b/frontend/ui/widget/inputtext.lua index 2eafcd745..36b2af497 100644 --- a/frontend/ui/widget/inputtext.lua +++ b/frontend/ui/widget/inputtext.lua @@ -917,6 +917,7 @@ function InputText:delWord(left_to_cursor) return end local start_pos, end_pos = self:getStringPos(true, left_to_cursor) + start_pos = math.min(start_pos, end_pos) for i = end_pos, start_pos, -1 do table.remove(self.charlist, i) end