mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
Save indented lines in console history
Mimic the behavior of the standard Python console by storing indented lines in history.
This commit is contained in:
parent
aae06116f9
commit
4f1c687102
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue