summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-29 18:33:56 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-29 18:33:56 -0500
commit90ffcaad047caa55e65a6bf858a7b976e062007a (patch)
treec76eb58d233fab1a70fe49253ebaa639fe23ca65 /command.c
parenta0b84cc8f40e19a506332be3a05222b87e6ed617 (diff)
tabs working pretty well (not done yet)
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")) {