projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new copyright notice
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
wwredrawwin.c
diff --git
a/usr/src/usr.bin/window/wwredrawwin.c
b/usr/src/usr.bin/window/wwredrawwin.c
index
7da3db4
..
460813c
100644
(file)
--- a/
usr/src/usr.bin/window/wwredrawwin.c
+++ b/
usr/src/usr.bin/window/wwredrawwin.c
@@
-1,13
+1,14
@@
-#ifndef lint
-static char sccsid[] = "@(#)wwredrawwin.c 3.10 %G%";
-#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.
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
*/
*/
+#ifndef lint
+static char sccsid[] = "@(#)wwredrawwin.c 3.15 (Berkeley) %G%";
+#endif /* not lint */
+
#include "ww.h"
wwredrawwin1(w, row1, row2, offset)
#include "ww.h"
wwredrawwin1(w, row1, row2, offset)
@@
-20,6
+21,7
@@
int row1, row2, offset;
register union ww_char *buf;
register char *win;
register union ww_char *ns;
register union ww_char *buf;
register char *win;
register union ww_char *ns;
+ int x;
int nchanged;
for (row = row1; row < row2; row++) {
int nchanged;
for (row = row1; row < row2; row++) {
@@
-30,14
+32,13
@@
int row1, row2, offset;
win = w->ww_win[row];
nchanged = 0;
for (; col < w->ww_i.r; col++)
win = w->ww_win[row];
nchanged = 0;
for (; col < w->ww_i.r; col++)
- if (*smap++ == w->ww_index) {
+ if (*smap++ == w->ww_index &&
+ ns[col].c_w !=
+ (x = buf[col].c_w ^ win[col] << WWC_MSHIFT)) {
nchanged++;
nchanged++;
- ns[col].c_w =
- buf[col].c_w ^ win[col] << WWC_MSHIFT;
+ ns[col].c_w = x;
}
}
- if (nchanged > 4)
- wwtouched[row] |= WWU_MAJOR|WWU_TOUCHED;
- else if (nchanged > 0)
+ if (nchanged > 0)
wwtouched[row] |= WWU_TOUCHED;
}
}
wwtouched[row] |= WWU_TOUCHED;
}
}