From 3b81448ae4b42ba83dc82bb378e68fbd2fa1fd3d Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 4 Aug 2001 15:04:10 +0000 Subject: [PATCH] Rainer Loritz noticed that the Telnet environment box is not cleared when loading a new session. Oops! [originally from svn r1171] --- windlg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/windlg.c b/windlg.c index 793bb08c..07e34bb6 100644 --- a/windlg.c +++ b/windlg.c @@ -663,6 +663,7 @@ static void init_dlg_ctrls(HWND hwnd, int keepsess) IDC_LSTATXAPN); { char *p = cfg.environmt; + SendDlgItemMessage(hwnd, IDV_ENVLIST, LB_RESETCONTENT, 0, 0); while (*p) { SendDlgItemMessage(hwnd, IDC_ENVLIST, LB_ADDSTRING, 0, (LPARAM) p); -- 2.45.2