Files
beluga/src/editor_op.c
T
2024-10-08 14:57:59 +02:00

11 lines
271 B
C

#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++;
}