This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
After pressing C-S-f (Reformat Code) the curses is always positioned at the end of file. A little inconvenient.
I'm looking at the formatting API and I don't see a way to get my hands on the caret. org.netbeans.editor.Formatter: public int reformat(BaseDocument doc, int startOffset, int endOffset) Perhaps I can do something horrible like looking for the associated FileObject (as a StreamProperty in the document), and from there fish out the DataObject, then the EditorCookie, then obtain the editor panes and get the caret. (Ewwww.) Since I believe the Format API will need to be redone for 6.0 anyway (to be lexer based rather than old- style TokenID based) this can hopefully be accomodated more easily.
This is fixed
Reassigning this issue to newly created 'ruby' component.
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.