]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - config.c
In the special case that handles selecting a session and hitting Enter,
[PuTTY.git] / config.c
index 03dcbf759ba469be46f43135993abf15d28a7eb6..68aaee7470cebb9b9515912e717bc609708f3bd4 100644 (file)
--- a/config.c
+++ b/config.c
@@ -358,6 +358,7 @@ static void sessionsaver_handler(union control *ctrl, void *dlg,
                /* If at this point we have a valid session, go! */
                if (*cfg2.host) {
                    *cfg = cfg2;       /* structure copy */
+                   cfg->remote_cmd_ptr = cfg->remote_cmd; /* nasty */
                    dlg_end(dlg, 1);
                } else
                    dlg_beep(dlg);