@@ -13,6 +13,10 @@ void editorInsertChar(int c) {
|
||||
}
|
||||
|
||||
void editorInsertNewLine() {
|
||||
/*
|
||||
* Add new line and place the cursor at the beginning of it
|
||||
*/
|
||||
fprintf(stderr, "Inserting new line\n");
|
||||
erow *row;
|
||||
if (!E.cursor_x) {
|
||||
editorInsertRow(E.cursor_y, "", 0);
|
||||
@@ -27,6 +31,7 @@ void editorInsertNewLine() {
|
||||
}
|
||||
++E.cursor_y;
|
||||
E.cursor_x = 0;
|
||||
fprintf(stderr, "Insert new line done\n");
|
||||
}
|
||||
|
||||
void editorDelChar() {
|
||||
|
||||
Reference in New Issue
Block a user