.Xr botch fix
[unix-history] / usr / src / usr.bin / window / wwadd.c
index c9509fb..45a9c43 100644 (file)
@@ -1,6 +1,16 @@
+/*
+ * Copyright (c) 1983 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 = "@(#)wwadd.c     3.7 83/12/02";
-#endif
+static char sccsid[] = "@(#)wwadd.c    3.14 (Berkeley) %G%";
+#endif /* not lint */
 
 #include "ww.h"
 
 
 #include "ww.h"
 
@@ -45,9 +55,7 @@ struct ww *w2;
                        ns[j].c_w = buf[j].c_w ^ win[j] << WWC_MSHIFT;
                        nchanged++;
                }
                        ns[j].c_w = buf[j].c_w ^ win[j] << WWC_MSHIFT;
                        nchanged++;
                }
-               if (nchanged > 4)
-                       wwtouched[i] |= WWU_MAJOR|WWU_TOUCHED;
-               else if (nchanged > 0)
+               if (nchanged > 0)
                        wwtouched[i] |= WWU_TOUCHED;
                w1->ww_nvis[i] = nvis;
        }
                        wwtouched[i] |= WWU_TOUCHED;
                w1->ww_nvis[i] = nvis;
        }