From 67e8e63f979a0bda4ebb2ca2c00b0c0a6691cd72 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Mon, 21 Feb 2011 21:04:47 +0300 Subject: [PATCH] Python console now handles multiline statement after entering empty an string (PY-2727). --- .../python/console/PydevConsoleExecuteActionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);