mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-9337 Copy paste doesn't always preserve the relative indentation of what is pasted.
check if we need to add leading spaces to pasted text
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# original function # this is line 1 of the code.
|
||||
def foo():
|
||||
print 'f00'
|
||||
def bar(num):
|
||||
for _ in range(num):
|
||||
print 'bar'
|
||||
bar(7)
|
||||
|
||||
|
||||
def bar(num):
|
||||
for _ in range(num):
|
||||
print 'bar'
|
||||
|
||||
|
||||
bar(7)
|
||||
@@ -0,0 +1,9 @@
|
||||
# original function # this is line 1 of the code.
|
||||
def foo():
|
||||
print 'f00'
|
||||
def bar(num):
|
||||
for _ in range(num):
|
||||
print 'bar'
|
||||
bar(7)
|
||||
|
||||
<caret>
|
||||
@@ -0,0 +1,10 @@
|
||||
# original function # this is line 1 of the code.
|
||||
def foo():
|
||||
print 'f00'
|
||||
<selection>def bar(num):
|
||||
for _ in range(num):
|
||||
print 'bar'
|
||||
bar(7)</selection><caret>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user