> Well, putting a tab inside a String in Java (instead of \t)
> is a very bad thing anyway.

Yes, of course. I didn't mention that I noticed this while
deleting the tabs from the string. To do that, I wanted to
position the cursor just before the tab, which didn't work
as expected. So, this isn't the point.

The point is that the cursor doesn't move as expected,
and (after some more testing) it also does so in regular
Java code ("use tab character" on/off doesn't matter):

  Ma|p<tab>m; -> Map<tab>|m;

Coming from the left, the cursor can't be placed just before
the tab.

> Maybe IDEA should convert the tab into space characters.

This isn't going to solve it since tabs can be typed in
when "use tab character" is turned on in IDEA.

> The cursor movement is controlled by Swing.

If the cursor movement is controlled by Swing, then I guess
IntelliJ can't do much, if it's not, it's a bug in IDEA.

-Thomas



> -----Original Message-----
> From: Erb [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 05, 2001 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Eap-list] Bug: Unexpected cursor movement through tabs
> 
> 
> Well, putting a tab inside a String in Java (instead of \t) is a very 
> bad thing
> anyway.  Maybe IDEA should convert the tab into space characters.
> The cursor movement is controlled by Swing.
> 
> Vollmer, Thomas - CannonSA wrote:
> 
> > IDEA (build 505), Windows 2000 SP2.
> > "IDE Options | Code Style | Tab | Use tab character" is uncheched.
> > 
> > I copied and pasted a string containing tabs from another app
> > into IDEA: "XXX<tab>XXX"
> > 
> > I get unexpected cursor movement when moving the cursor to 
> the right:
> > 
> > Start: "|XXX<tab>XXX"
> > After KEY_RIGHT: "X|XX<tab>XXX"
> > After KEY_RIGHT: "XX|X<tab>XXX"
> > After KEY_RIGHT: "XXX<tab>|XXX" instead of "XXX|<tab>XXX"
> > 
> > Moving the cursor to the left works as expected:
> > 
> > Start: "XXX<tab>|XXX"
> > After KEY_LEFT: "XXX|<tab>XXX"
> > After KEY_LEFT: "XX|X<tab>XXX"
> > After KEY_LEFT: "X|XX<tab>XXX"
> > After KEY_LEFT: "|XXX<tab>XXX"
> > 
> > -Thomas

************************************ 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
************************************ 


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to