fixed inner function bug in copy-paste

This commit is contained in:
Ekaterina Tuzova
2012-07-03 15:41:27 +04:00
parent cea24f04e9
commit 469ce0ca36
4 changed files with 27 additions and 0 deletions
@@ -0,0 +1,10 @@
class C:
def foo(self):
y = 2
def foo(self):
x = 1
y = 2
def bar(self):
y = 2
@@ -0,0 +1,8 @@
class C:
def foo(self):
y = 2
<caret>
def bar(self):
y = 2
@@ -0,0 +1,5 @@
class C:
<selection> def foo(self):
x = 1
y = 2
</selection>
@@ -147,6 +147,10 @@ public class PyCopyPasteTest extends PyTestCase {
doTestMultiLine();
}
public void testIndentFunction() {
doTestMultiLine();
}
private void doTest() {
String name = getTestName(false);