From 5b2ef1da6aecb82cf549e4b17e246149e4ad9968 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 29 Jun 2012 18:35:48 +0200 Subject: [PATCH] IncrementalInsertor::insert takes a memoryview rather than a Register --- src/editor.cc | 4 ++-- src/editor.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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);