logic for indenting after pasting does not based on copying now

PY-6884, PY-6965, PY-6966, PY-6907
This commit is contained in:
Ekaterina Tuzova
2012-07-16 19:18:49 +04:00
parent 6899581a33
commit 6aa655c180
17 changed files with 117 additions and 46 deletions
@@ -2,6 +2,5 @@ class C:
def foo(self):
x = 1
y = 2
def bar(self):
pass
@@ -0,0 +1,5 @@
def f():
try:
a = 1
except:
b = 1
@@ -0,0 +1,6 @@
def f():
try:
<selection> a = 1
except:
b = 1
</selection><caret>
@@ -0,0 +1,6 @@
def f():
try:
<selection> a = 1
except:
b = 1
</selection><caret>
@@ -0,0 +1,5 @@
def f():
if True:
c = 1
a = 1
@@ -0,0 +1,5 @@
def f():
if True:
<caret>
a = 1
@@ -0,0 +1,7 @@
<selection>c = 1
</selection>
def f():
try:
a = 1
except:
b = 1
@@ -0,0 +1,6 @@
def f():
try:
a = 1
except:
b = 1
@@ -0,0 +1,5 @@
def f():
<caret>try:
a = 1
except:
b = 1
@@ -0,0 +1,7 @@
<selection>
</selection>
def f():
try:
a = 1
except:
b = 1
@@ -4,4 +4,3 @@ def f():
print(0.1)
else:
print(0.1)
<caret>
@@ -1,5 +1,5 @@
class C:
<selection>def foo(self):
<selection>def foo(self):
x = 1
y = 2
</selection>
@@ -1,6 +1,8 @@
def f():
a = 1
b = 2
def f():
a = 1
b = 2
@@ -6,4 +6,3 @@ def foo():
b = 1
graph.clear = 0.1
<caret>
@@ -3,4 +3,3 @@ def f(self):
if True:
b = 2
x = 1
<caret>