add Buffer::Cursor type alias for GapBuffer::Cursor

This commit is contained in:
josh committed 2016-11-30 21:06:59 -05:00
1 parent e57c71855a
commit f14db217d2
3 files changed
+12 -11

No files matched your search

+2
View File
@@ -12,6 +12,8 @@ class Buffer
public:
Buffer(const char * filename = nullptr);
bool write_to_file(const char * filename);
typedef GapBuffer::Cursor Cursor;
auto add_cursor() { return m_gap_buffer->add_cursor(); }
auto get_string() { return m_gap_buffer->get_string(); }