diff --git a/src/uosc/lib/utils.lua b/src/uosc/lib/utils.lua index 9e591265..d001ed1a 100644 --- a/src/uosc/lib/utils.lua +++ b/src/uosc/lib/utils.lua @@ -421,7 +421,7 @@ end ---@param current_index number ---@param delta number 1 or -1 for forward or backward function decide_navigation_in_list(paths, current_index, delta) - if #paths < 2 then return #paths, paths[#paths] end + if #paths < 2 then return end delta = delta < 0 and -1 or 1 -- Shuffle looks at the played files history trimmed to 80% length of the paths