summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/selection.cc3
-rw-r--r--src/selection.hh1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/selection.cc b/src/selection.cc
index b536ee1b..00280a4d 100644
--- a/src/selection.cc
+++ b/src/selection.cc
@@ -48,12 +48,11 @@ void SelectionList::set(Vector<Selection> list, size_t main)
kak_assert(main < list.size());
m_selections = std::move(list);
m_main = main;
+ m_timestamp = m_buffer->timestamp();
sort_and_merge_overlapping();
- update_timestamp();
check_invariant();
}
-
namespace
{
diff --git a/src/selection.hh b/src/selection.hh
index 27820700..bf24ad95 100644
--- a/src/selection.hh
+++ b/src/selection.hh
@@ -137,7 +137,6 @@ struct SelectionList
Buffer& buffer() const { return *m_buffer; }
size_t timestamp() const { return m_timestamp; }
- void update_timestamp() { m_timestamp = m_buffer->timestamp(); }
void insert(ConstArrayView<String> strings, InsertMode mode,
Vector<BufferCoord>* out_insert_pos = nullptr);