fixed PY-11654 Move Statement: IOE at com.intellij.openapi.editor.impl.DocumentImpl.d

This commit is contained in:
Ekaterina Tuzova
2013-12-18 17:49:42 +04:00
parent ea2df3886e
commit 9376c69e6f
12 changed files with 14 additions and 30 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
if value is not None:
if not False or value <= 2:
print "h<caret>ere"
print "h<caret>ere"
+1 -1
View File
@@ -1,4 +1,4 @@
if value is not None:
print "here"
if not False or value <= 2:
pass
pass
+1 -1
View File
@@ -1,3 +1,3 @@
for item in range(1,
3):
b = 2<caret>
b = 2<caret>
@@ -1,4 +1,4 @@
b = 2<caret>
for item in range(1,
3):
pass
pass
@@ -1,3 +1,3 @@
if True:
<caret><selection> a = 2
b = 3</selection>
b = 3</selection>
@@ -1,4 +1,4 @@
<caret><selection>a = 2
b = 3</selection>
if True:
pass
pass
+1 -1
View File
@@ -4,4 +4,4 @@ def test(a, b=1):
else:
for n in range(10):
<caret> print(b)
<caret> print(b)
@@ -3,4 +3,4 @@ if condition:
elif other_condition:
if another_one:
if T<caret>rue: a = 1 # <- move statement up here
else: b = 2
else: b = 2
@@ -4,4 +4,4 @@ elif other_condition:
if T<caret>rue: a = 1 # <- move statement up here
else: b = 2
if another_one:
pass
pass
+1 -1
View File
@@ -4,4 +4,4 @@ try:
except:
print(zoo(0).foo(2))
except:
zoo<caret>(3)
zoo<caret>(3)
+1 -1
View File
@@ -5,4 +5,4 @@ try:
print(zoo(0).foo(2))
zoo(3)
except:
pass
pass