Browse Source

Save indented lines in console history

Mimic the behavior of the standard Python console by storing
indented lines in history.
patch-4
Benoit Verret 4 years ago
parent
commit
4f1c687102
  1. 2
      electrum/gui/qt/console.py

2
electrum/gui/qt/console.py

@ -173,7 +173,7 @@ class Console(QtWidgets.QPlainTextEdit):
return command return command
def addToHistory(self, command): def addToHistory(self, command):
if command[0:1] == ' ': if not self.construct and command[0:1] == ' ':
return return
if command and (not self.history or self.history[-1] != command): if command and (not self.history or self.history[-1] != command):

Loading…
Cancel
Save