electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 6d67e7713672f325f873b9ca3ee60ff9970810f2
parent ba649fa8ab61a758a2a8bdb7f3c4d0f6ddee17a6
Author: ThomasV <thomasv@electrum.org>
Date:   Thu,  3 Sep 2020 14:26:36 +0200

Merge pull request #6552 from verretor/console-constructs

Fix handling of constructs in console
Diffstat:
Melectrum/gui/qt/console.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py @@ -99,7 +99,7 @@ class Console(QtWidgets.QPlainTextEdit): def newPrompt(self, curr_line): if self.construct: - prompt = '.' * len(self.prompt) + prompt = '... ' else: prompt = self.prompt + curr_line @@ -160,9 +160,8 @@ class Console(QtWidgets.QPlainTextEdit): def getConstruct(self, command): if self.construct: - prev_command = self.construct[-1] self.construct.append(command) - if not prev_command and not command: + if not command: ret_val = '\n'.join(self.construct) self.construct = [] return ret_val