summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/command.c b/command.c
index 1acca2f..1c5f28b 100644
--- a/command.c
+++ b/command.c
@@ -140,6 +140,9 @@ void command_execute(Ted *ted, Command c, i64 argument) {
case CMD_OPEN:
menu_open(ted, MENU_OPEN);
break;
+ case CMD_NEW:
+ ted_new_file(ted);
+ break;
case CMD_SAVE:
if (buffer) {
if (buffer->filename && streq(buffer->filename, "Untitled")) {