New issue
Advanced search Search tips

Issue 680103 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Closed: Oct 31
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Enter does not create new line when in {} block

Reported by oliverj...@gmail.com, Jan 11 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2970.0 Safari/537.36

Steps to reproduce the problem:
1. Open the console
2. Type `{\n\n}`
3. On the empty line, type `const f = {`
4. Press enter

What is the expected behavior?
Dev tools show create a new line.

What went wrong?
The statement is executed.

Did this work before? N/A 

Chrome version: 57.0.2970.0  Channel: dev
OS Version: OS X 10.12.2
Flash Version:
 

Comment 1 by alph@chromium.org, Jan 11 2017

Labels: Needs-Feedback
Can't repro. Could you please record a screencast
Untitled.gif
78.4 KB View Download

Comment 3 by woxxom@gmail.com, Jan 12 2017

Indeed, currently Enter insert a new line only when you type sequentially without moving the caret: type {, press Enter, type const f = {, press Enter, and so on.

Comment 4 by alph@chromium.org, Jan 12 2017

Labels: -Needs-Feedback
Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 5 by l...@chromium.org, Jan 12 2017

Cc: l...@chromium.org
Owner: einbinder@chromium.org
Whenever the cursor isn't at the end, the prompt always evaluates.

@einbinder, this looks related to your prompt changes.  What do you think about bracket counting along with tokens?
Status: Archived (was: Assigned)
Bulk closing low-priority issues with no activity. Please re-file and refer to the closed issue if it's essential to fix.

Sign in to add a comment