Fix moving files to the front of the MRU list
This commit is contained in:
parent
72748d45f7
commit
8ba286c544
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ void MRUManager::Add(std::string const& key, agi::fs::path const& entry) {
|
||||||
if (it == begin(map) && it != end(map))
|
if (it == begin(map) && it != end(map))
|
||||||
return;
|
return;
|
||||||
if (it != end(map))
|
if (it != end(map))
|
||||||
rotate(begin(map), it, it);
|
rotate(begin(map), it, it + 1);
|
||||||
else {
|
else {
|
||||||
map.insert(begin(map), entry);
|
map.insert(begin(map), entry);
|
||||||
Prune(key, map);
|
Prune(key, map);
|
||||||
|
|
Loading…
Reference in a new issue