diff options
| author | ailurux <ailuruxx@gmail.com> | 2025-02-11 11:02:04 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2025-02-11 11:02:04 +1100 |
| commit | fff980a979aa6be6ad5697f73017a2da6649de86 (patch) | |
| tree | e456a352e2ed126371921143589c56491607bbef /lua/widgets.lua | |
| parent | 90b302a9f4677502935564be51c060fb98cc765b (diff) | |
| download | tangara-fw-fff980a979aa6be6ad5697f73017a2da6649de86.tar.gz | |
Fix bug in infinite list causing items to be removed (#253)
Diffstat (limited to 'lua/widgets.lua')
| -rw-r--r-- | lua/widgets.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/widgets.lua b/lua/widgets.lua index 20f0cd2a..de2aa43d 100644 --- a/lua/widgets.lua +++ b/lua/widgets.lua @@ -346,8 +346,9 @@ function widgets.InfiniteList(parent, iterator, opts) if this_item < last_selected then -- moving backward if (first_index > 0 and last_index - this_item > 3) then - local to_add = bck_iterator:prev(); + local to_add = bck_iterator:value(); if to_add then + bck_iterator:prev() remove_last() add_item(to_add, first_index - 1) refresh_group() |
