Add PieceTable::apply_change() and an initial undo

This commit is contained in:
josh committed 2016-09-26 22:54:19 -04:00
1 parent 5b662b63e0
commit fe9747390a
3 files changed
+43 -31

No files matched your search

+4
View File
@@ -270,6 +270,10 @@ void Window::handle_key(uint32_t scancode, uint32_t mod)
case SDL_SCANCODE_P:
insertion_test();
break;
case SDL_SCANCODE_U:
m_buffer->piece_table->undo();
redraw();
break;
}
}