Bug 314848 - [block selection] Unexpected Cursor position when inserting spaces for tabs
Summary: [block selection] Unexpected Cursor position when inserting spaces for tabs
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Tom Hofmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 07:49 EDT by Hendrik Eeckhaut CLA
Modified: 2019-09-06 16:08 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Eeckhaut CLA 2010-05-28 07:49:33 EDT
Build Identifier: M20090917-0800

If you replace tabs with spaces and use block selection mode:
when you move the cursor to a position where there is no text yet (and the cursor stops blinking)
If you press tab, spaces are inserted but the cursor is at an unexpected position.

Reproducible: Always

Steps to Reproduce:
1.Change following preferences in (General > Editors > Text Editors):
   1. Insert spaces for tabs
   2. Show whitespace characters
2. Create a new text file
3. Switch to Block Selection Mode
4. Click with the mouse to position the cursor (anywhere is OK, even position 1:1). The cursor stops blinking
5. Press TAB
6. Four spaces are correctly inserted, but the cursor is now behind the first space instead of behind the fourth space.
Comment 1 Dani Megert CLA 2010-06-01 06:44:24 EDT
Tom, can you take a look? Nothing urgent. Not for 3.6.
Comment 2 Jeremy Flicker CLA 2010-11-05 17:27:50 EDT
I think i am seeing this when the cursor is in a position where there is current text.  To reproduce:

Open a text file in an editor, and type text:
abcd

on a line.  

Use a displayed tab width of 4, Tab to spaces conversion enabled, and enter block selection mode.

Put the caret before the a.
Tab forward 4 times
Shift-Tab backwards 4 times
Tab forward 4 times.

This second time tabbing forward, the caret position increasingly falls out of whack.
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:08:26 EDT
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.