mirror of https://github.com/Hilbis/Hilbish
fix: dont add recent dir if its same as last previous (fixes #92)
parent
11f193b394
commit
5e9ea9fead
|
@ -30,8 +30,10 @@ commander.register('cd', function (args)
|
||||||
bait.throw('cd', path)
|
bait.throw('cd', path)
|
||||||
|
|
||||||
-- add to table of recent dirs
|
-- add to table of recent dirs
|
||||||
table.insert(recentDirs, 1, path)
|
|
||||||
recentDirs[11] = nil
|
recentDirs[11] = nil
|
||||||
|
if recentDirs[#recentDirs - 1] ~= path then
|
||||||
|
table.insert(recentDirs, 1, path)
|
||||||
|
end
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue