tw.py: insert existing label text when editing label

This commit is contained in:
The MMGen Project 2021-10-07 13:12:10 +00:00
commit 59aed3431b
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -415,7 +415,9 @@ Actions: [q]uit view, [p]rint to file, pager [v]iew, [w]ide view, add [l]abel:
cur_lbl = self.unspent[n-1].label
msg('Current label: {}'.format(cur_lbl.hl() if cur_lbl else '(none)'))
while True:
s = line_input("Enter label text (or 'q' to return to main menu): ")
s = line_input(
"Enter label text (or 'q' to return to main menu): ",
insert_txt = cur_lbl )
if s == 'q':
return None,None
elif s == '':