Bug 33626 - [formatting] format command causes the cursor to move
Summary: [formatting] format command causes the cursor to move
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 29185 95341 284108 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-02 12:06 EST by Andrew Freeman CLA
Modified: 2019-12-04 16:10 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Freeman CLA 2003-03-02 12:06:22 EST
When I use the the format command the cursor jumps forward 8 characters.

1            commandMap.add(
2                "firstActionToPerform",
3                "com.company.app.command.SomeCommand");
4            commandMap.add(
5                "secondActionToPerform",
6                "com.company.app.command.SomeCommand");

If I have the cursor before the 'c' on line 1 and then I use the format 
command, the cursor jumps between the 'M' and the 'a' on line 1.  I do it 
again and it jumps to col 1 of line 2.  Next time it jumps to bewteen the 'T' 
and the 'o' on line 2, then after the 'm' on line 2, then after the first '.' 
on line 3, then after the secon '.' on line 3, etc.  If I continue on, the 
cursor ends up cycling on line 3 to various points.
Comment 1 Andrew Freeman CLA 2003-03-02 12:09:21 EST
The example I gave earlier shows when the cursor moves forward when using the 
format command.  I have also had situations where the cursor moves backard but 
not as often.
Comment 2 Dani Megert CLA 2003-09-24 05:12:12 EDT
*** Bug 29185 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2008-06-18 06:43:09 EDT
*** Bug 95341 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2009-07-30 06:10:18 EDT
*** Bug 284108 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Genie CLA 2019-12-03 06:51:31 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Mateusz Matela CLA 2019-12-04 16:10:27 EST
Can't reproduce with current versions.