Add PieceTable::apply_change() and an initial undo
This commit is contained in:
1 parent
5b662b63e0
commit
fe9747390a
3 files changed
+43
-31
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user