Browse Source

tw.py: insert existing label text when editing label

The MMGen Project 3 years ago
parent
commit
59aed3431b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      mmgen/tw.py

+ 3 - 1
mmgen/tw.py

@@ -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 == '':