mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
Fix handling of constructs in console
- Replace "...." by "... " in multiline constructs. - Execute constructs after one empty line and not two or three. It was more or less random before.
This commit is contained in:
parent
ba649fa8ab
commit
9e35f1f8ac
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue