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:
,
Jan 12 2017
,
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.
,
Jan 12 2017
,
Jan 12 2017
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?
,
Oct 31
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 |
||||
Comment 1 by alph@chromium.org
, Jan 11 2017