Files
openide/python/testData/copyPaste/WholeIndentedLineSelectedWithoutIndentAndReplacedWithWord.dst.py
Mikhail Golubev 6d4bc430c3 PY-22563 Remove indent before the caret from re-indented text being pasted
Otherwise, we end up duplicating it.

This logic shouldn't apply if the fragment being pasted will be inserted on
the previous line which should actually happen only if there was no selection
in the editor, just the caret preceding a line -- I additionally enforced
this requirement.

Added tests covering the original issue and some of its duplicates (PY-29506).
2018-12-20 13:54:40 +03:00

4 lines
69 B
Python

if True:
if True:
pass
<selection>foo = 2</selection>