diff --git a/src/editor.cc b/src/editor.cc index a9a326c5..2567d599 100644 --- a/src/editor.cc +++ b/src/editor.cc @@ -319,9 +319,9 @@ void IncrementalInserter::insert(const String& string) apply(Modification::make_insert(sel.begin(), string)); } -void IncrementalInserter::insert(const Register& reg) +void IncrementalInserter::insert(const memoryview& strings) { - m_editor.insert(reg); + m_editor.insert(strings); } void IncrementalInserter::erase() diff --git a/src/editor.hh b/src/editor.hh index 4656b369..7cf7031a 100644 --- a/src/editor.hh +++ b/src/editor.hh @@ -111,7 +111,7 @@ public: ~IncrementalInserter(); void insert(const String& string); - void insert(const Register& reg); + void insert(const memoryview& strings); void erase(); void move_cursors(const BufferCoord& offset);