Oops - repercussions of the close-on-exit stuff which I forgot to
[sgt/putty] / ldisc.c
diff --git a/ldisc.c b/ldisc.c
index ceafa41..a149c6d 100644 (file)
--- a/ldisc.c
+++ b/ldisc.c
@@ -74,6 +74,12 @@ void ldisc_send(char *buf, int len, int interactive)
        return;
     }
     /*
+     * Notify the front end that something was pressed, in case
+     * it's depending on finding out (e.g. keypress termination for
+     * Close On Exit). 
+     */
+    frontend_keypress();
+    /*
      * Less than zero means null terminated special string.
      */
     if (len < 0) {