Add unit tests for GapBuffer and fix an insert() bug.
This commit is contained in:
1 parent
595d74c8c4
commit
6f244e5c8f
2 files changed
+40
No files matched your search
@@ -70,5 +70,6 @@ void GapBuffer::move_gap(size_t position)
|
||||
{
|
||||
memmove(&m_buffer[m_gap_position], &m_buffer[m_gap_position + gap_size()], position - m_gap_position);
|
||||
}
|
||||
m_gap_position = position;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user