summaryrefslogtreecommitdiff
path: root/src/dynamic_selection_list.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-13 23:22:54 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-13 23:22:54 +0100
commit11d9b607668d56c8deaf9062d48d9ce7aa6f5928 (patch)
treec7473586d11e33c2d2841ef459b3feed698be3d0 /src/dynamic_selection_list.cc
parenta06094b00e92d34e9f0be6abf80e5f4ce64998b3 (diff)
Make it harder to have an invalid SelectionList
Diffstat (limited to 'src/dynamic_selection_list.cc')
-rw-r--r--src/dynamic_selection_list.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dynamic_selection_list.cc b/src/dynamic_selection_list.cc
index 4087bb0c..f49b36c7 100644
--- a/src/dynamic_selection_list.cc
+++ b/src/dynamic_selection_list.cc
@@ -19,14 +19,12 @@ DynamicSelectionList& DynamicSelectionList::operator=(SelectionList selections)
void DynamicSelectionList::on_insert(const Buffer& buffer, ByteCoord begin, ByteCoord end, bool at_end)
{
- update_insert(begin, end, at_end);
- set_timestamp(buffer.timestamp());
+ update();
}
void DynamicSelectionList::on_erase(const Buffer& buffer, ByteCoord begin, ByteCoord end, bool at_end)
{
- update_erase(begin, end, at_end);
- set_timestamp(buffer.timestamp());
+ update();
}
}