mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-6887 Paste changes code logic when making top-level function inner
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
def foo(self):
|
||||
x = 1
|
||||
y = 2
|
||||
|
||||
def foo(self):
|
||||
x = 1
|
||||
y = 2
|
||||
|
||||
z = 3
|
||||
@@ -0,0 +1,5 @@
|
||||
def foo(self):
|
||||
x = 1
|
||||
y = 2
|
||||
<caret>
|
||||
z = 3
|
||||
@@ -0,0 +1,4 @@
|
||||
<selection>def foo(self):
|
||||
x = 1
|
||||
y = 2
|
||||
</selection>
|
||||
@@ -147,11 +147,15 @@ public class PyCopyPasteTest extends PyTestCase {
|
||||
doTestMultiLine();
|
||||
}
|
||||
|
||||
public void testIndentInnerFunction1() { //PY-6887
|
||||
doTestMultiLine();
|
||||
}
|
||||
|
||||
public void testIndentFunction() {
|
||||
doTestMultiLine();
|
||||
}
|
||||
|
||||
public void testDecreaseIndent() {
|
||||
public void testDecreaseIndent() { //PY-6889
|
||||
doTestMultiLine();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user