diff --git a/python/src/com/jetbrains/python/console/PydevConsoleExecuteActionHandler.java b/python/src/com/jetbrains/python/console/PydevConsoleExecuteActionHandler.java index fdadbb67d121..3ec0b0e6a6e3 100644 --- a/python/src/com/jetbrains/python/console/PydevConsoleExecuteActionHandler.java +++ b/python/src/com/jetbrains/python/console/PydevConsoleExecuteActionHandler.java @@ -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);