summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-24 19:27:49 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-24 19:27:49 -0500
commitf6d49d377ac136fc29457b3b4501f0488b6412e3 (patch)
tree1ff4a6885decabcc4f639a0420b94c836e01940f /command.c
parentaccf188e7c84ee627d5e4cfe12c141e929699830 (diff)
copy/cut/paste
Diffstat (limited to 'command.c')
-rw-r--r--command.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/command.c b/command.c
index 74a624a..d90153d 100644
--- a/command.c
+++ b/command.c
@@ -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;