From bf98b38afd5338f6be617cfaf4bb251eb011e2b0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 14 May 2014 00:59:36 +0100 Subject: Use a plain SelectionList for Context, remove DynamicSelectionList --- src/normal.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/normal.cc') 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(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 auto pos = prepare_insert(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(); -- cgit v1.2.3