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

This commit is contained in:
Josh Holtrop 2016-11-30 21:07:57 -05:00
parent f14db217d2
commit 95884a2b85

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;