diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-24 19:27:49 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-24 19:27:49 -0500 |
commit | f6d49d377ac136fc29457b3b4501f0488b6412e3 (patch) | |
tree | 1ff4a6885decabcc4f639a0420b94c836e01940f /command.c | |
parent | accf188e7c84ee627d5e4cfe12c141e929699830 (diff) |
copy/cut/paste
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -129,6 +129,15 @@ void command_execute(Ted *ted, Command c, i64 argument) { case CMD_REDO: if (buffer) buffer_redo(buffer, argument); break; + case CMD_COPY: + if (buffer) buffer_copy(buffer); + break; + case CMD_CUT: + if (buffer) buffer_cut(buffer); + break; + case CMD_PASTE: + if (buffer) buffer_paste(buffer); + break; case CMD_TEXT_SIZE_INCREASE: { i64 new_text_size = settings->text_size + argument; |