add Buffer::insert() alias for GapBuffer::insert()
This commit is contained in:
parent
f14db217d2
commit
95884a2b85
@ -16,6 +16,10 @@ public:
|
|||||||
typedef GapBuffer::Cursor Cursor;
|
typedef GapBuffer::Cursor Cursor;
|
||||||
auto add_cursor() { return m_gap_buffer->add_cursor(); }
|
auto add_cursor() { return m_gap_buffer->add_cursor(); }
|
||||||
auto get_string() { return m_gap_buffer->get_string(); }
|
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:
|
protected:
|
||||||
bool m_eol_at_eof;
|
bool m_eol_at_eof;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user