Skip to content

Fix #2004 - Indent breaks when hitting enter before spaces#2690

Merged
benfry merged 1 commit into
processing:masterfrom
AmnonOwed:Fix2004-IndentBreaksOnEnterBeforeSpaces
Jul 31, 2014
Merged

Fix #2004 - Indent breaks when hitting enter before spaces#2690
benfry merged 1 commit into
processing:masterfrom
AmnonOwed:Fix2004-IndentBreaksOnEnterBeforeSpaces

Conversation

@AmnonOwed

Copy link
Copy Markdown
Contributor

Fix #2004 - Indent breaks when hitting enter before spaces

The underlying problem for this issue was not the indent itself, but the caret position afterwards.

This solution handles all possible situations:

  • extra spaces after caret > indent (inside IF)
  • extra spaces after caret <= indent (inside ELSE)

benfry added a commit that referenced this pull request Jul 31, 2014
…foreSpaces

Fix #2004 - Indent breaks when hitting enter before spaces
@benfry benfry merged commit 520a3cb into processing:master Jul 31, 2014
@benfry

benfry commented Jul 31, 2014

Copy link
Copy Markdown
Contributor

Thanks!

@AmnonOwed AmnonOwed deleted the Fix2004-IndentBreaksOnEnterBeforeSpaces branch July 31, 2014 22:51
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Indent breaks when hitting enter on a space

2 participants