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