Furthermore the problem has to do apparently with the tab-stop settings.
This affects more than the surround with selection. It also affects
Aligning multiple parameters in method declaration if tabbing before the
type of the first parameter.
ex:
public static void foo(\tString x,\n
will result in
public static void foo(\tString x,
|
Where the cursor is at the pipe. This is in the event of tab-stop = 8.
The offset appears to be (current tab-stop setting) - 4(which is default).
Sounds like someone is not using the defined tab-stop value, just the
hard coded default tab.
I think this would apply anywhere that IDEA is going to parse the text
buffer.
I hope this helps..
regards,
Andrew
-----Original Message-----
From: Cowling, Andrew
Sent: Friday, March 01, 2002 11:09 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [Eap-list] Surround with is buggy in build 607
I've been able to reproduce a surround with bug consistently.
copy the following method into a class and follow its intsructions.
public static void testSurround(){
// Put the cursor at the end of this line ->
// And then hit return, then select from the first comment line
// to the last, and Ctl-Alt-T and do not select anything
// you will see that in the background the selection will
// 'grow' to include invalid symbols for selection
// This is causing the internal assertion when completing the surround with
// As you cannot surround incomplete statements
// I believe this has to do with whitespace on an empty line.
// If you cursor through the blank line after the failed operation,
// you will see that there is no more extra whitespace.
}
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list