Status bar / editing / saving file

This commit is contained in:
Arthur Barraux
2024-10-08 14:57:59 +02:00
parent 297eef4ce2
commit 1c22c3beca
15 changed files with 334 additions and 27 deletions
+10
View File
@@ -0,0 +1,10 @@
#include "../include/editor_op.h"
#include "../include/row_op.h"
void editorInsertChar(struct editorConfig *E, int c) {
if (E->cursor_y == E->numrows) {
editorAppendRow(E, "", 0);
}
editorRowInsertChar(&E->row[E->cursor_y], E->cursor_x, c);
E->cursor_x++;
}