summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
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;