summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index c2c2cc244..02ae7880f 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -1326,7 +1326,7 @@ Config::add_to_history_internal (vector<boost::filesystem::path>& h, boost::file
h.insert (h.begin (), p);
if (h.size() > HISTORY_SIZE) {
- h.pop_back ();
+ h.resize(HISTORY_SIZE);
}
changed (HISTORY);