summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-14 00:59:36 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-14 19:49:04 +0100
commitbf98b38afd5338f6be617cfaf4bb251eb011e2b0 (patch)
tree7832efaa75e4a6da23d57cf2672d60ce59c779d7 /src/normal.cc
parentdb423e4a88be8799ce0cfae33ddbf4c6bae97e5f (diff)
Use a plain SelectionList for Context, remove DynamicSelectionList
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 14526d2f..a8386b32 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -70,6 +70,7 @@ void insert(Buffer& buffer, SelectionList& selections, const String& str)
{
auto pos = prepare_insert<mode>(buffer, sel);
pos = buffer.insert(pos, str);
+ selections.update();
if (mode == InsertMode::Replace and pos != buffer.end())
{
sel.anchor() = pos.coord();
@@ -93,6 +94,7 @@ void insert(Buffer& buffer, SelectionList& selections, memoryview<String> string
auto pos = prepare_insert<mode>(buffer, sel);
const String& str = strings[std::min(i, strings.size()-1)];
pos = buffer.insert(pos, str);
+ selections.update();
if (mode == InsertMode::Replace and pos != buffer.end())
{
sel.anchor() = pos.coord();