summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 045ebdc..7ef8df0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -16,13 +16,14 @@
*/
#include <stdio.h>
-#include "ui.h"
+#include "editor.h"
int
main (int argc, char* argv[])
{
- ui *ui = ui_create ();
- ui_loop (ui);
- ui_destroy (ui);
+ editor *ed = editor_create ();
+ editor_open (ed, "src/main.c");
+ editor_display (ed);
+ editor_destroy (ed);
return 0;
}