From 59aed3431bdeecff1ef1960c53542cbea2e47cd7 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Thu, 7 Oct 2021 13:12:10 +0000 Subject: [PATCH] tw.py: insert existing label text when editing label --- mmgen/tw.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmgen/tw.py b/mmgen/tw.py index 409dcc99..a413e5ea 100755 --- a/mmgen/tw.py +++ b/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 == '':