fix: autoload looping a file when only a single file in directory
closes #768
This commit is contained in:
@@ -421,7 +421,7 @@ end
|
|||||||
---@param current_index number
|
---@param current_index number
|
||||||
---@param delta number 1 or -1 for forward or backward
|
---@param delta number 1 or -1 for forward or backward
|
||||||
function decide_navigation_in_list(paths, current_index, delta)
|
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
|
delta = delta < 0 and -1 or 1
|
||||||
|
|
||||||
-- Shuffle looks at the played files history trimmed to 80% length of the paths
|
-- Shuffle looks at the played files history trimmed to 80% length of the paths
|
||||||
|
Reference in New Issue
Block a user