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

Bug 313551

Summary: [navigation] Caret jumping back to beginning of line
Product: [Eclipse Project] JDT Reporter: Marvin Fröhlich <eclipse>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Marvin Fröhlich CLA 2010-05-19 11:12:58 EDT
Build Identifier: 20090920-1017

When I edit code like the following

##########
aaaaa bbbbb|b ccc ddd eeeeee ffffff;

ggg hhhhh iiiii;
##########

and the caret is where the pipe symbol is in the first line and I then go down with the caret by one line and then down to the third line the caret will most probably be at the line start of line 3.

Normally one would expect the caret to be after the 1st 'i'.

There seems to be a hardcoded (?) delay after which the caret is reset to the current column (line start of line 2 in the above example), which is way too short.

The delay seems to be even shorter when uncompilable code is being edited.

The delay should either be enlarged by some times or made configurable in the preferences.

Reproducible: Always
Comment 1 Dani Megert CLA 2010-05-19 11:19:40 EDT
Which editor are you talking about?
Comment 2 Dani Megert CLA 2010-05-19 11:20:08 EDT
Do you also see it when using the (default) Text Editor?
Comment 3 Marvin Fröhlich CLA 2010-05-19 12:13:46 EDT
I am using the Java text editor. And it doesn't seem to be in the normal text editor.
Comment 4 Dani Megert CLA 2010-05-20 02:15:01 EDT
I cannot reproduce this using 3.6 RC1 or N20100517-2000. Maybe the given example is not enough and the jump is caused by something else (e.g. a view setting back the selection).

Please try again using latest Eclipse SDK build:
http://download.eclipse.org/eclipse/downloads/drops/I20100519-1548/index.php

If you can still reproduce then please provide more detailed steps.