Great tutorial, however there are quite a few style issues I see.
For example:
On step 43, you add variables for the cursor's X and Y
struct editorConfig {
int cx, cy;
int screenrows;
int screencols;
. . .
}
If you put cx and cy on the same line for variable declaration, it's a good idea to also put screenrows and screencols on the same line, and you might even consider pulling all four of them on the same line.
Great tutorial, however there are quite a few style issues I see.
For example:
On step 43, you add variables for the cursor's X and Y
If you put
cxandcyon the same line for variable declaration, it's a good idea to also putscreenrowsandscreencolson the same line, and you might even consider pulling all four of them on the same line.