Fixed bug with history stop working after executing empty last history item (PY-3232).

This commit is contained in:
Dmitry Trofimov
2011-04-05 19:56:49 +04:00
parent f3284a336c
commit 37d1a1e723
@@ -60,9 +60,8 @@ public class ConsoleExecuteActionHandler {
languageConsole.addCurrentToHistory(range, false, myPreserveMarkup);
}
languageConsole.setInputText("");
if (!StringUtil.isEmptyOrSpaces(text)) {
myConsoleHistoryModel.addToHistory(text);
}
myConsoleHistoryModel.addToHistory(text);
// Send to interpreter / server
processLine(text);