add Buffer::insert() alias for GapBuffer::insert()

This commit is contained in:
josh committed 2016-11-30 21:07:57 -05:00
1 parent f14db217d2
commit 95884a2b85
1 file changed
+4
+4
View File
@@ -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;