Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316360 - [Editor] MultiLine Auto Edit strategy inserts too much on return
Summary: [Editor] MultiLine Auto Edit strategy inserts too much on return
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 15:20 EDT by Henrik Lindberg CLA
Modified: 2017-09-19 16:09 EDT (History)
3 users (show)

See Also:
sven.efftinge: helios+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Lindberg CLA 2010-06-09 15:20:09 EDT
How to reproduce.

Enter:
/*

And the result is:
/*
 * |
 */

Then press <enter>, and the faulty result is
/*
 *
 * |
  */
 */

where '|' denotes the caret position. The result after <enter> inserts an extra ML comment end, and it is badly formatted.
Comment 1 Michael Clay CLA 2010-06-10 08:07:03 EDT
how to reproduce Add-On 

Enter:
/*|

/*
 * 
 **/

And the result is:
/*
 * |
 */

/*
 * 
 **/


Then press <enter>, and the faulty result is
/*
 *
 * |
  */
 */

/*
 * 
 **/

'|' denotes the caret position
Comment 2 Sebastian Zarnekow CLA 2010-06-25 11:27:54 EDT
Michael,
are you still working on this one?
Comment 3 Sebastian Zarnekow CLA 2010-07-30 12:38:45 EDT
Fixed in HEAD.
Comment 4 Karsten Thoms CLA 2017-09-19 16:09:31 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.