organisation des des fichiers

This commit is contained in:
Arthur Barraux
2024-09-23 17:51:59 +02:00
parent ca215da58e
commit c613eb6978
20 changed files with 538 additions and 449 deletions
+12
View File
@@ -0,0 +1,12 @@
#include "../include/init.h"
void initEditor(struct editorConfig *E) {
E->cursor_x = 0;
E->cursor_y = 0;
E->row_offset = 0;
E->numrows = 0;
E->row = NULL;
if (getWindowSize(&E->screenrows, &E->screencols) == -1) {
die("getWindowSize");
}
}