tMerge pull request #2886 from romanz/master - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit d1e897bf8f0bb8dd3a9a394b8284dd4c9dd8622d (DIR) parent 10b35e3545001f1e98f92942e7f7ba49e915c27a (HTM) Author: ThomasV <thomasv@electrum.org> Date: Sun, 17 Sep 2017 21:51:18 +0200 Merge pull request #2886 from romanz/master paytoedit: fix insertCompletion() string handling Diffstat: M gui/qt/paytoedit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- (DIR) diff --git a/gui/qt/paytoedit.py b/gui/qt/paytoedit.py t@@ -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)