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

Bug 416123

Summary: Auto-indentation pushes caret position too far
Product: [ECD] Orion Reporter: Maciej Bendkowski <maciej.bendkowski>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gabriel.luong, Silenio_Quarti
Version: 4.0   
Target Milestone: 4.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Editor content none

Description Maciej Bendkowski CLA 2013-08-29 05:54:58 EDT
Created attachment 234909 [details]
Editor content

I was copy-pasting a code snippet and noticed different indentations between the snippet and the rest of my code. I get with the caret to right before "cradle.setup" and hit backspace several times until "cradle.setup" was right after "options{". Hit enter, to correct the indentation, after which I've noticed the caret position is not at the beginning of "cradle.setup", but after the first "c" - thus one position after the expected. See attachment for full editor content.
Comment 1 Silenio Quarti CLA 2013-08-29 14:39:17 EDT
I believe this has been fixed by this commit. Please try the latest and reopen if otherwise.

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=573617c24977248484beaba7ac1e15099301a2b7