aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/history.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-06-23 22:02:39 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-06-23 22:03:07 -0700
commit02cef2da23b022cf2703fdf856fdf00b452d67fb (patch)
tree57639bdb9c83210421184d082b13e29872987a88 /src/history.cpp
parent9c53019d95c7b73f14c8bb39cddadacab16d0bf9 (diff)
history --merge to properly interleave items
Fixes #2312
Diffstat (limited to 'src/history.cpp')
-rw-r--r--src/history.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/history.cpp b/src/history.cpp
index 48469759..44c153a5 100644
--- a/src/history.cpp
+++ b/src/history.cpp
@@ -1548,6 +1548,12 @@ void history_t::incorporate_external_changes() {
if (new_timestamp > this->boundary_timestamp) {
this->boundary_timestamp = new_timestamp;
this->clear_file_state();
+
+ // We also need to erase new_items, since we go through those first, and that means we
+ // will not properly interleave them with items from other instances.
+ // We'll pick them up from the file (#2312)
+ this->save_internal(false);
+ this->new_items.clear();
}
}