Add unit tests for GapBuffer and fix an insert() bug.

This commit is contained in:
josh committed 2016-12-07 23:37:52 -05:00
1 parent 595d74c8c4
commit 6f244e5c8f
2 files changed
+40

No files matched your search

+1
View File
@@ -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;
}
}