mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
Merge pull request #2886 from romanz/master
paytoedit: fix insertCompletion() string handling
This commit is contained in:
commit
d1e897bf8f
1 changed files with 2 additions and 2 deletions
|
@ -209,10 +209,10 @@ class PayToEdit(ScanQRTextEdit):
|
|||
if self.c.widget() != self:
|
||||
return
|
||||
tc = self.textCursor()
|
||||
extra = completion.length() - self.c.completionPrefix().length()
|
||||
extra = len(completion) - len(self.c.completionPrefix())
|
||||
tc.movePosition(QTextCursor.Left)
|
||||
tc.movePosition(QTextCursor.EndOfWord)
|
||||
tc.insertText(completion.right(extra))
|
||||
tc.insertText(completion[-extra:])
|
||||
self.setTextCursor(tc)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue