python: added ability to move multiline statements

fixed PY-6587 Move Statements: inconsistent selection on moving more than one statement up or down.
This commit is contained in:
Ekaterina Tuzova
2013-09-13 20:02:16 +04:00
parent eeff2a8021
commit 01caab85df
38 changed files with 510 additions and 63 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ class A:
def foo(self):
pass
<selection>def<caret> bar(self):
<selection><caret>def bar(self):
pass</selection>
def baz(self):
@@ -6,5 +6,5 @@ class A:
def baz(self):
pass
<selection>def<caret> bar(self):
<selection><caret>def bar(self):
pass</selection>
@@ -1,6 +1,6 @@
class A:
<selection>def<caret> bar(self):
<selection><caret>def bar(self):
pass</selection>
def foo(self):
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection>a = 1
b = 2
<caret></selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection> a = 1
b = 2
<caret></selection>
@@ -0,0 +1,3 @@
if True:
<caret><selection> a = 2
b = 3</selection>
@@ -0,0 +1,4 @@
if True:
pass
<caret><selection>a = 2
b = 3</selection>
@@ -0,0 +1,4 @@
<caret><selection>a = 2
b = 3</selection>
if True:
pass
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection> a = 1
b = 2
<caret></selection>
@@ -0,0 +1,6 @@
class Test(object):
def q(self):
<selection> a = 1
b = 2
<caret></selection> c = 3
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection>a = 1
b = 2
<caret></selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection>a = 1
b = 2
<caret></selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection>a = 1
b = 2
<caret></selection>
@@ -0,0 +1,6 @@
class Test(object):
def q(self):
<selection> a = 1
b = 2
<caret></selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
pass
<selection> a = 1
b = 2
<caret></selection>
@@ -0,0 +1,6 @@
class Test(object):
<selection> a = 1
b = 2
<caret></selection> def q(self):
pass
@@ -0,0 +1,5 @@
class Test(object):
<selection> a = 1
b = 2
<caret></selection> def q(self):
c = 3
@@ -0,0 +1,5 @@
class Test(object):
def q(self):
<selection> a = 1
b = 2
<caret></selection> c = 3
@@ -0,0 +1,5 @@
<selection>a = 1
b = 2
<caret></selection>class Test(object):
def q(self):
c = 3
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection><caret>a = 1
b = 2
</selection>
@@ -0,0 +1,8 @@
class Test(object):
def q(self):
c = 3
<selection><caret>a = 1
b = 2
</selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection><caret> a = 1
b = 2
</selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<caret><selection> a = 1
b = 2
</selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<caret><selection> a = 1
b = 2
</selection>
@@ -0,0 +1,6 @@
class Test(object):
def q(self):
<caret><selection> a = 1
b = 2
</selection> c = 3
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<caret><selection>a = 1
b = 2
</selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<caret><selection>a = 1
b = 2
</selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<caret><selection>a = 1
b = 2
</selection>
@@ -0,0 +1,6 @@
class Test(object):
def q(self):
<caret><selection> a = 1
b = 2
</selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
pass
<caret><selection> a = 1
b = 2
</selection>
@@ -0,0 +1,6 @@
class Test(object):
<caret><selection> a = 1
b = 2
</selection> def q(self):
pass
@@ -0,0 +1,5 @@
class Test(object):
<caret><selection> a = 1
b = 2
</selection> def q(self):
c = 3
@@ -0,0 +1,5 @@
class Test(object):
def q(self):
<caret><selection> a = 1
b = 2
</selection> c = 3
@@ -0,0 +1,5 @@
<caret><selection>a = 1
b = 2
</selection>class Test(object):
def q(self):
c = 3
@@ -0,0 +1,8 @@
class Test(object):
def q(self):
c = 3
<selection>a = 1
b = 2
<caret></selection>
@@ -0,0 +1,7 @@
class Test(object):
def q(self):
c = 3
<selection> a = 1
b = 2
<caret></selection>