diff --git a/src/core/Buffer.h b/src/core/Buffer.h index 95afabf..a7b2af8 100644 --- a/src/core/Buffer.h +++ b/src/core/Buffer.h @@ -177,7 +177,9 @@ public: const Buffer::Iterator & end); std::shared_ptr filename() const { return m_filename; } Iterator begin() const { return Iterator(this); } + std::shared_ptr beginp() const { return std::make_shared(this); } Iterator end() const { return *m_eof_iterator; } + std::shared_ptr endp() const { return std::make_shared(*m_eof_iterator); } void push_operation() { m_operation_level++; } void pop_operation(); void undo();