From 4f1c6871025df7000dba507918f751f197630573 Mon Sep 17 00:00:00 2001 From: Benoit Verret Date: Wed, 30 Sep 2020 09:17:04 -0400 Subject: [PATCH] Save indented lines in console history Mimic the behavior of the standard Python console by storing indented lines in history. --- electrum/gui/qt/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py index a6713100e..1eaaffb7a 100644 --- a/electrum/gui/qt/console.py +++ b/electrum/gui/qt/console.py @@ -173,7 +173,7 @@ class Console(QtWidgets.QPlainTextEdit): return command def addToHistory(self, command): - if command[0:1] == ' ': + if not self.construct and command[0:1] == ' ': return if command and (not self.history or self.history[-1] != command):