Should be able to switch line disciplines mid-session
[u/mdw/putty] / window.c
index a636ac5..0a68857 100644 (file)
--- a/window.c
+++ b/window.c
@@ -714,6 +714,7 @@ static int WINAPI WndProc (HWND hwnd, UINT message,
            und_mode = UND_FONT;
            init_fonts();
            sfree(logpal);
+           ldisc = (cfg.ldisc_term ? &ldisc_term : &ldisc_simple);
            if (pal)
                DeleteObject(pal);
            logpal = NULL;