Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342567 - [editor] Problems with the editor auto indent
Summary: [editor] Problems with the editor auto indent
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 09:58 EDT by Silenio Quarti CLA
Modified: 2011-09-01 11:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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