Skip to content

Commit

Permalink
Fix variable being declared too late
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Jun 18, 2018
1 parent c9589ad commit 5f0addb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ local function completeProgram( sLine )
-- Add all subdirectories. We don't include files as they will be added in the block below
local tDirs = fs.complete( sLine, sDir, false, false )
for i = 1, #tDirs do
local sResult = tDirs[i]
if not tSeen[ sResult ] then
local sResult = tDirs[i]
table.insert (tResults, sResult )
table.insert ( tResults, sResult )
tSeen [ sResult ] = true
end
end
Expand Down

0 comments on commit 5f0addb

Please sign in to comment.