Skip to content

Indent breaks when hitting enter on a space #2004

Description

@kritzikratzi

assume that . means space, and ^ means cursor position

to reproduce:

  1. type ..size(400,400);^.
  2. press enter
  3. in the next line you get .^. (imho the result should be either ..^. or ..^

you might wonder how one ends up with the cursor before the space as in (1). well, it happens all the time if you use cmd+right to jump to the end of the line, which actually jumps to the last non space character. pressing enter there results in this bug.

because i'm in the habbit of ending my lines with "; " the ide is one formatting nightmare for me.

ps. i think this bug has been in processing for quite a while.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions