added copy command

master
bx 2022-04-02 22:28:26 +01:00
parent e708b994da
commit 07d5fc4a8c
3 changed files with 6 additions and 0 deletions

View File

@ -9,5 +9,7 @@ NULL,
['['] = c_unindent,
[']'] = c_indent,
['d'] = c_delete,
['c'] = c_copy,
};

2
efn.c
View File

@ -22,5 +22,7 @@
#include "c_indent.c"
#include "c_delete.c"
#include "c_clipboard.c"
#include "commands.c"

View File

@ -1,3 +1,5 @@
Row init_row = { 0 };
Row *buffer = &init_row;
Row *clipboard = NULL;