summaryrefslogtreecommitdiff
path: root/src/context.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-06-04 23:23:37 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-06-05 19:44:56 +0100
commit26f69b199eec9e9609500d059e647a2dbbacd218 (patch)
treef3f2f3ae440fdc441a5f29272c090e44ae6b5acc /src/context.cc
parentf7e89bc9f817ff4c34d6ca5debf53c5a3a3ca924 (diff)
Rework and fix corner cases in selection updating code
Diffstat (limited to 'src/context.cc')
-rw-r--r--src/context.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/context.cc b/src/context.cc
index 21704168..4f28b596 100644
--- a/src/context.cc
+++ b/src/context.cc
@@ -205,6 +205,7 @@ std::vector<String> Context::selections_content() const
void Context::set_selections(std::vector<Selection> sels)
{
*m_selections = std::move(sels);
+ (*m_selections).check_invariant();
}
void Context::begin_edition()