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

Bug 342567

Summary: [editor] Problems with the editor auto indent
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: ClientAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2   
Target Milestone: 0.2   
Hardware: All   
OS: All   
Whiteboard:

Description Silenio Quarti CLA 2011-04-12 09:58:22 EDT
These are two cases where the editor auto indent code is not working properly.

<tab> -> tab character
<caret> -> where the caret is placed

1)
<tab><tab>some code<caret><tab><tab><tab>more code

The final code/selection after pressing <enter> is:

<tab><tab>some code
<tab><tab><caret><tab><tab><tab>more code

It should be:

<tab><tab>some code
<tab><tab><caret>more code


2)
<tab><caret><tab><tab>some code

The final code/selection after pressing <enter> is:

<tab>
<tab><tab><tab><caret>some code

It should be:

<tab>
<tab><caret>some code