mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-7599 Conflict with bin/pycharm64.exe.vmoptions upgrading from PyCharm 2.6.1 to 2.6.2
This commit is contained in:
@@ -113,7 +113,7 @@ public class PythonCopyPasteProcessor implements CopyPastePreProcessor {
|
||||
newText = new String(text); // to indent correctly (see PasteHandler)
|
||||
}
|
||||
|
||||
if (element instanceof PsiWhiteSpace &&
|
||||
if ((element instanceof PsiWhiteSpace || element.getTextOffset() == 0) &&
|
||||
(StringUtil.countChars(element.getText(), '\n') <= 2 && !StringUtil.isEmptyOrSpaces(text))) {
|
||||
newText += "\n";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
a = 1
|
||||
b = 2
|
||||
a = 1
|
||||
@@ -0,0 +1,2 @@
|
||||
<caret>b = 2
|
||||
a = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
b = 2
|
||||
<selection>a = 1
|
||||
</selection>
|
||||
@@ -255,6 +255,10 @@ public class PyCopyPasteTest extends PyTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testBeginningOfFile() { //PY-7524
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
String name = getTestName(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user