mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
Merge pull request #6552 from verretor/console-constructs
Fix handling of constructs in console
This commit is contained in:
commit
6d67e77136
1 changed files with 2 additions and 3 deletions
|
@ -99,7 +99,7 @@ class Console(QtWidgets.QPlainTextEdit):
|
||||||
|
|
||||||
def newPrompt(self, curr_line):
|
def newPrompt(self, curr_line):
|
||||||
if self.construct:
|
if self.construct:
|
||||||
prompt = '.' * len(self.prompt)
|
prompt = '... '
|
||||||
else:
|
else:
|
||||||
prompt = self.prompt + curr_line
|
prompt = self.prompt + curr_line
|
||||||
|
|
||||||
|
@ -160,9 +160,8 @@ class Console(QtWidgets.QPlainTextEdit):
|
||||||
|
|
||||||
def getConstruct(self, command):
|
def getConstruct(self, command):
|
||||||
if self.construct:
|
if self.construct:
|
||||||
prev_command = self.construct[-1]
|
|
||||||
self.construct.append(command)
|
self.construct.append(command)
|
||||||
if not prev_command and not command:
|
if not command:
|
||||||
ret_val = '\n'.join(self.construct)
|
ret_val = '\n'.join(self.construct)
|
||||||
self.construct = []
|
self.construct = []
|
||||||
return ret_val
|
return ret_val
|
||||||
|
|
Loading…
Add table
Reference in a new issue