Python console now handles multiline statement after entering empty an string (PY-2727).

This commit is contained in:
Dmitry Trofimov
2011-02-22 11:13:35 +03:00
parent b011506c09
commit 67e8e63f97
@@ -93,7 +93,7 @@ public class PydevConsoleExecuteActionHandler extends ConsoleExecuteActionHandle
return;
}
if (myCurrentIndentSize != -1) {
if (myCurrentIndentSize != -1 && !StringUtil.isEmptyOrSpaces(line)) {
final int indent = myIndentHelper.getIndent(line, false);
if (indent >= myCurrentIndentSize) {
indentEditor(currentEditor, indent);