diff --git a/src/core/Buffer.h b/src/core/Buffer.h index 39bbc59..62cd465 100644 --- a/src/core/Buffer.h +++ b/src/core/Buffer.h @@ -16,6 +16,10 @@ public: typedef GapBuffer::Cursor Cursor; auto add_cursor() { return m_gap_buffer->add_cursor(); } auto get_string() { return m_gap_buffer->get_string(); } + void insert(Cursor & insert_cursor, uint32_t code_point) + { + m_gap_buffer->insert(insert_cursor, code_point); + } protected: bool m_eol_at_eof;