From: simon Date: Sat, 10 Mar 2001 10:22:18 +0000 (+0000) Subject: Update the text format of the public key as the comment box is edited X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/2e8324fc5624af5e4d3de5955bf781cf8a7c027c Update the text format of the public key as the comment box is edited git-svn-id: svn://svn.tartarus.org/sgt/putty@989 cda61777-01e9-0310-a592-d414129be87e --- 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);