From: simon Date: Sat, 4 Aug 2001 15:04:10 +0000 (+0000) Subject: Rainer Loritz noticed that the Telnet environment box is not cleared X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/6edd7346879373ad77b27867587b0421fd82fc13?ds=sidebyside Rainer Loritz noticed that the Telnet environment box is not cleared when loading a new session. Oops! git-svn-id: svn://svn.tartarus.org/sgt/putty@1171 cda61777-01e9-0310-a592-d414129be87e --- 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);