no cursor position reset when updating list filter

develop
myk002 2022-08-29 15:17:17 -07:00
parent 991654d41e
commit 27e189fef2
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 1 deletions

@ -1204,7 +1204,9 @@ function FilteredList:setFilter(filter, pos)
local cidx = nil
filter = filter or ''
self.edit:setText(filter)
if filter ~= self.edit.text then
self.edit:setText(filter)
end
if filter ~= '' then
local tokens = filter:split()