optimization for normal masks requires keeping ptr to associated leaf,
[unix-history] / usr / src / usr.bin / window / wwinsline.c
index 5eb7c85..3a7cd40 100644 (file)
@@ -1,6 +1,16 @@
+/*
+ * Copyright (c) 1983, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Edward Wang at The University of California, Berkeley.
+ *
+ * %sccs.include.redist.c%
+ */
+
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)wwinsline.c 3.5 83/09/15";
-#endif
+static char sccsid[] = "@(#)wwinsline.c        8.1 (Berkeley) %G%";
+#endif /* not lint */
 
 #include "ww.h"
 
 
 #include "ww.h"
 
@@ -44,7 +54,9 @@ int row;
         */
        if (visible)
                wwclreol1(w, row, w->ww_b.l, deleted);
         */
        if (visible)
                wwclreol1(w, row, w->ww_b.l, deleted);
-       else
+       else {
+               cp += w->ww_b.l;
                for (i = w->ww_b.nc; --i >= 0;)
                        cp++->c_w = ' ';
                for (i = w->ww_b.nc; --i >= 0;)
                        cp++->c_w = ' ';
+       }
 }
 }