support window size changes
authorJim Bloom <bloom@ucbvax.Berkeley.EDU>
Fri, 22 Feb 1985 09:34:17 +0000 (01:34 -0800)
committerJim Bloom <bloom@ucbvax.Berkeley.EDU>
Fri, 22 Feb 1985 09:34:17 +0000 (01:34 -0800)
SCCS-vsn: usr.bin/ex/ex_vops2.c 6.6

usr/src/usr.bin/ex/ex_vops2.c

index b4a877b..e6e2604 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 1981 Regents of the University of California */
 /* Copyright (c) 1981 Regents of the University of California */
-static char *sccsid = "@(#)ex_vops2.c  6.5 %G%";
+static char *sccsid = "@(#)ex_vops2.c  6.6 %G%";
 #include "ex.h"
 #include "ex_tty.h"
 #include "ex_vis.h"
 #include "ex.h"
 #include "ex_tty.h"
 #include "ex_vis.h"
@@ -112,6 +112,7 @@ vappend(ch, cnt, indent)
        bool escape;
        int repcnt, savedoomed;
        short oldhold = hold;
        bool escape;
        int repcnt, savedoomed;
        short oldhold = hold;
+       int oldmask;
 
        /*
         * Before a move in hardopen when the line is dirty
 
        /*
         * Before a move in hardopen when the line is dirty
@@ -201,6 +202,7 @@ vappend(ch, cnt, indent)
         */
        gobblebl = 0;
 
         */
        gobblebl = 0;
 
+       oldmask = sigblock(sigmask(SIGWINCH));
        /*
         * Text gathering loop.
         * New text goes into genbuf starting at gcursor.
        /*
         * Text gathering loop.
         * New text goes into genbuf starting at gcursor.
@@ -378,6 +380,7 @@ vappend(ch, cnt, indent)
        doomed = 0;
        wcursor = cursor;
        vmove();
        doomed = 0;
        wcursor = cursor;
        vmove();
+       (void)sigsetmask(oldmask);
 }
 
 /*
 }
 
 /*