mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-6889 Incorrect indent on pasting class method on module-level right after the class itself
This commit is contained in:
+3
@@ -163,6 +163,9 @@ public class CopyPasteIndentProcessor implements CopyPastePostProcessor<IndentTr
|
||||
if (!StringUtil.isEmptyOrSpaces(s) && firstIndent > currentIndent)
|
||||
return;
|
||||
}
|
||||
//insert on top level, doesn't need indent
|
||||
if (caretColumn == 0 && !pastedText.startsWith(" "))
|
||||
return;
|
||||
|
||||
if (textBeforeFirstLine.trim().length() == 0) {
|
||||
EditorActionUtil.indentLine(project, editor, startLine, -value.getFirstLineLeadingSpaces());
|
||||
|
||||
Reference in New Issue
Block a user