summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2025-08-22 21:17:23 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2025-08-22 21:17:23 +0200
commit6c4d699eeb7fb385b775041ba59487666e550612 (patch)
treebbeed327d0b05b33c4c57809af2918be445728e2 /src/main.c
parent3926c3df7f94d8c99f1dc8d4996b1aa117aac5f9 (diff)
editor: start with the editor interface
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;
}