MacOS: added a setup section to avoid script in application bundle
[pspp] / src / ui / terminal / terminal-reader.c
index b8c71447ce5c7563c6bde942f7bf9bde18767723..2f2a533d1577f4d6cf46a95e3f60cd1b26ce7dd8 100644 (file)
@@ -41,7 +41,6 @@ static char *command_generator (const char *text, int state);
 #include <sys/time.h>
 #include <sys/types.h>
 
-#include <assert.h>
 #include <errno.h>
 #include <stdint.h>
 #include <stdlib.h>
@@ -57,7 +56,6 @@ static char *command_generator (const char *text, int state);
 #include "libpspp/version.h"
 #include "output/driver.h"
 #include "output/journal.h"
-#include "ui/terminal/terminal.h"
 
 #include "gl/minmax.h"
 #include "gl/xalloc.h"
@@ -159,15 +157,6 @@ terminal_reader_read (struct lex_reader *r_, char *buf, size_t n,
        }
       r->offset = 0;
       r->eof = ss_is_empty (r->s);
-
-      /* Check whether the size of the window has changed, so that
-         the output drivers can adjust their settings as needed.  We
-         only do this for the first line of a command, as it's
-         possible that the output drivers are actually in use
-         afterward, and we don't want to confuse them in the middle
-         of output. */
-      if (prompt_style == PROMPT_FIRST)
-        terminal_check_size ();
     }
 
   chunk = MIN (n, r->s.length - r->offset);