Skip to content

Inconsistent Style #54

@gluecia

Description

@gluecia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions