Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316360

Summary: [Editor] MultiLine Auto Edit strategy inserts too much on return
Product: [Modeling] TMF Reporter: Henrik Lindberg <henrik.lindberg>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: clay, sebastian.zarnekow, sven.efftinge
Version: 1.0.0Flags: sven.efftinge: helios+
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.