Bug 5473

Summary: Shift-Left behavior with intermixed tabs and spaces
Product: [Eclipse Project] JDT Reporter: Lynne Kues <lynne_kues>
Component: UIAssignee: Claude Knaus <Claude_Knaus>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M2   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Lynne Kues CLA 2001-11-02 11:32:12 EST
Build 20011025

1. In a default text editor type in the following:

<space><tab>some text
<tab>some text

2. Now highlight the two lines above and execute Shift-Left.  Notice that 
nothing moves.  
3. Replace the tab character in the first line with spaces so that the two 
lines are indented the same visually.  Execute Shift-Left.  The text now moves.

I'm not sure how this is spec'd, but in the first scenario it seems like the 
second line should be shifted left and the first line should be shifted left at 
least to the space character (i.e., get rid of the tab).  At any rate, it's 
definitely confusing if there is a stray space.  You don't know why the text 
won't shift.
Comment 1 Claude Knaus CLA 2002-01-09 11:00:49 EST
fixed > 20020108