diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-30 22:27:24 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-30 22:27:24 -0500 |
commit | 185bf5b364efb4d7885ff5adcb69204e892ff5f7 (patch) | |
tree | 8bacf74b81e15ab71a0badb6a7c3492e47a2c662 /command.c | |
parent | e6ec7b7baa9a0a52c3becb0ef43bb3285232b999 (diff) |
config working!
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -94,15 +94,21 @@ void command_execute(Ted *ted, Command c, i64 argument) { case CMD_DELETE: buffer_delete_chars_at_cursor(buffer, argument); break; - case CMD_BACKSPACE_WORDS: + case CMD_BACKSPACE_WORD: buffer_backspace_words_at_cursor(buffer, argument); break; - case CMD_DELETE_WORDS: + case CMD_DELETE_WORD: buffer_delete_words_at_cursor(buffer, argument); break; case CMD_SAVE: buffer_save(buffer); break; + case CMD_UNDO: + buffer_undo(buffer, argument); + break; + case CMD_REDO: + buffer_redo(buffer, argument); + break; } } |