Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Style #54

Open
saturnaliam opened this issue May 22, 2023 · 0 comments
Open

Inconsistent Style #54

saturnaliam opened this issue May 22, 2023 · 0 comments

Comments

@saturnaliam
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant