From eee0a20be6dda7b2a5c16a081e27e576d30cb458 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 10 Mar 2001 10:22:18 +0000 Subject: [PATCH] Update the text format of the public key as the comment box is edited [originally from svn r989] --- puttygen.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/puttygen.c b/puttygen.c index 8ce44b4a..44fc98fa 100644 --- a/puttygen.c +++ b/puttygen.c @@ -530,8 +530,13 @@ static int CALLBACK MainDlgProc (HWND hwnd, UINT msg, sfree(*state->commentptr); *state->commentptr = smalloc(len+1); GetWindowText(editctl, *state->commentptr, len+1); - } - } + if (state->ssh2) { + setupbigedit2(hwnd, IDC_KEYDISPLAY, &state->ssh2key); + } else { + setupbigedit1(hwnd, IDC_KEYDISPLAY, &state->key); + } + } + } break; case IDC_ABOUT: EnableWindow(hwnd, 0); -- 2.45.2