]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Rainer Loritz noticed that the Telnet environment box is not cleared
authorSimon Tatham <anakin@pobox.com>
Sat, 4 Aug 2001 15:04:10 +0000 (15:04 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 4 Aug 2001 15:04:10 +0000 (15:04 +0000)
when loading a new session. Oops!

[originally from svn r1171]

windlg.c

index 793bb08c4788bc9e3797adcaabb3aaf306e21d1b..07e34bb6ddf8a53ccc1e66404b443a1c978d2b10 100644 (file)
--- 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);