]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/window.c
Add some index terms for host key overrides.
[PuTTY.git] / windows / window.c
index bf8d651eb22424056420f391f2bea393e923486f..7c320a0acb5c80e93bca18db0d6745cd333b5857 100644 (file)
@@ -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;
@@ -3248,10 +3249,6 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
                                   TO_CHR_X(p.x),
                                   TO_CHR_Y(p.y), shift_pressed,
                                   control_pressed, is_alt_pressed());
-                       term_mouse(term, b, translate_button(b),
-                                  MA_RELEASE, TO_CHR_X(p.x),
-                                  TO_CHR_Y(p.y), shift_pressed,
-                                  control_pressed, is_alt_pressed());
                    } /* else: not sure when this can fail */
                } else {
                    /* trigger a scroll */