diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-09 20:15:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-09 20:15:27 +0200 |
| commit | af8b3ff07d3cf3d5455dd2cc1cc4004627ce6d63 (patch) | |
| tree | 322d95213982d7d438456468e7f936de43ecfbe0 /src/lib | |
| parent | b83321a4e3065ca90bed7e329c77ef8f35c3036d (diff) | |
Fix history trimming.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 2 |
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); |
