X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=windows%2Fwindow.c;h=7c320a0acb5c80e93bca18db0d6745cd333b5857;hb=068b67d2f6e9b186b3107ebcb1e88a141b7b5ebc;hp=6ee534348160f59365057de3411829659b50a12c;hpb=7d394fc9e9c705770f6bde26b67df1b00ea82c64;p=PuTTY.git diff --git a/windows/window.c b/windows/window.c index 6ee53434..7c320a0a 100644 --- a/windows/window.c +++ b/windows/window.c @@ -2234,9 +2234,10 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, * Flush the line discipline's edit buffer in the * case where local editing has just been disabled. */ - ldisc_configure(ldisc, conf); - if (ldisc) + if (ldisc) { + ldisc_configure(ldisc, conf); ldisc_send(ldisc, NULL, 0, 0); + } if (pal) DeleteObject(pal); logpal = NULL;