Skip to content

Commit fe694cb

Browse files
Fix for loop in try_uncompress_path not iterating to the end of scanlist
1 parent c8b08df commit fe694cb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

filemanager2.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,17 +787,19 @@ local function try_uncompress_path(path)
787787

788788
-- Iterate each item in scanlist until we find the path we want, uncompress dir in the process
789789
local y = 0
790-
for j = 1, #scanlist do
790+
local j = 1
791+
while(j <= #scanlist)
792+
do
791793
if scanlist[j].dirmsg == Icons()['dir'] and
792794
string.find(clean_path, scanlist[j].abspath) then
793795

794796
uncompress_target(j)
795797
end
796-
797798
if scanlist[j].abspath == clean_path then
798799
y = j
799800
break
800801
end
802+
j = j + 1
801803
end
802804

803805
-- Move cursor to the final target

0 commit comments

Comments
 (0)