Fix moving files to the front of the MRU list

This commit is contained in:
Thomas Goyne 2014-05-29 07:28:46 -07:00
parent 72748d45f7
commit 8ba286c544
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void MRUManager::Add(std::string const& key, agi::fs::path const& entry) {
if (it == begin(map) && it != end(map))
return;
if (it != end(map))
rotate(begin(map), it, it);
rotate(begin(map), it, it + 1);
else {
map.insert(begin(map), entry);
Prune(key, map);