Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313551 - [navigation] Caret jumping back to beginning of line
Summary: [navigation] Caret jumping back to beginning of line
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 11:12 EDT by Marvin Fröhlich CLA
Modified: 2010-05-20 02:15 EDT (History)
1 user (show)

See Also:


Attachments

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