SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
3 additions and
2 deletions
-
electrum/gui/qt/console.py
-
electrum/gui/qt/paytoedit.py
|
|
@ -304,7 +304,8 @@ class Console(QtWidgets.QPlainTextEdit): |
|
|
|
|
|
|
|
def completions(self): |
|
|
|
cmd = self.getCommand() |
|
|
|
lastword = re.split(' |\(|\)',cmd)[-1] |
|
|
|
# note for regex: new words start after ' ' or '(' or ')' |
|
|
|
lastword = re.split(r'[ ()]', cmd)[-1] |
|
|
|
beginning = cmd[0:-len(lastword)] |
|
|
|
|
|
|
|
path = lastword.split('.') |
|
|
|
|
|
@ -37,7 +37,7 @@ from .qrtextedit import ScanQRTextEdit |
|
|
|
from .completion_text_edit import CompletionTextEdit |
|
|
|
from . import util |
|
|
|
|
|
|
|
RE_ALIAS = '(.*?)\s*\<([0-9A-Za-z]{1,})\>' |
|
|
|
RE_ALIAS = r'(.*?)\s*\<([0-9A-Za-z]{1,})\>' |
|
|
|
|
|
|
|
frozen_style = "QWidget { background-color:none; border:none;}" |
|
|
|
normal_style = "QPlainTextEdit { }" |
|
|
|