Community
Participate
Working Groups
Build Identifier: M20100211-1343 In the Eclipse text editor, the Smart Home/End keys can move in the wrong direction (see Steps to reproduce) if the caret is on a line consisting entirely of tabs or spaces and the caret is not at the beginning/end of the line. Reproducible: Always Steps to Reproduce: 1. Create a new Untitled Text File (though any type of text file should work). 2. Indent twice (i.e. press Tab, then Tab again). 3. Move to between the two tab characters. 4. Press Home. Result: The caret is moved to the *end* of the line if you press Home, and *beginning* of the line if you press End. This also happens with spaces instead of tabs.
That's the "smart" part of the action. You can disable this if you don't like it.
I get your point, but if you press 'End', wouldn't the expected action still be to move to the end of the line, not the beginning? (I originally noticed this for the 'End' key, but then somehow erroneously included the 'Home' key in the bug report as well - sorry about that.)
class foo {}(In reply to comment #2) > I get your point, but if you press 'End', wouldn't the expected action still be > to move to the end of the line, not the beginning? Well, it does. However, in your example you only have trailing whitespace in which case both ends actually serve as the end of "real" text.