added "more" command
[unix-history] / usr / src / usr.bin / window / wwinschar.c
index 58740aa..9fa6fd7 100644 (file)
@@ -1,7 +1,13 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)wwinschar.c 3.11 83/12/02";
+static char sccsid[] = "@(#)wwinschar.c        3.14 %G%";
 #endif
 
 #endif
 
+/*
+ * Copyright (c) 1983 Regents of the University of California,
+ * All rights reserved.  Redistribution permitted subject to
+ * the terms of the Berkeley Software License Agreement.
+ */
+
 #include "ww.h"
 #include "tt.h"
 
 #include "ww.h"
 #include "tt.h"
 
@@ -60,7 +66,7 @@ short c;
                for (; i < w->ww_i.r; i++) {
                        if (*smap++ != w->ww_index)
                                continue;
                for (; i < w->ww_i.r; i++) {
                        if (*smap++ != w->ww_index)
                                continue;
-                       touched = 1;
+                       touched |= WWU_TOUCHED;
                        if (win[i])
                                ns[i].c_w =
                                        buf[i].c_w ^ win[i] << WWC_MSHIFT;
                        if (win[i])
                                ns[i].c_w =
                                        buf[i].c_w ^ win[i] << WWC_MSHIFT;