From 8ba286c544d2cd3fdac83304b61abbc21e043179 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 29 May 2014 07:28:46 -0700 Subject: [PATCH] Fix moving files to the front of the MRU list --- libaegisub/common/mru.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libaegisub/common/mru.cpp b/libaegisub/common/mru.cpp index 4616caf53..42176f727 100644 --- a/libaegisub/common/mru.cpp +++ b/libaegisub/common/mru.cpp @@ -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);