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
better wrap around handling.
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
wwinschar.c
diff --git
a/usr/src/usr.bin/window/wwinschar.c
b/usr/src/usr.bin/window/wwinschar.c
index
8a52ac5
..
53a17ce
100644
(file)
--- a/
usr/src/usr.bin/window/wwinschar.c
+++ b/
usr/src/usr.bin/window/wwinschar.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char *sccsid = "@(#)wwinschar.c 3.
5
83/08/17";
+static char *sccsid = "@(#)wwinschar.c 3.
6
83/08/17";
#endif
#include "ww.h"
#endif
#include "ww.h"
@@
-67,7
+67,8
@@
short c;
}
col += w->ww_w.l;
row += w->ww_w.t;
}
col += w->ww_w.l;
row += w->ww_w.t;
- if (tt.tt_setinsert != 0 && nvis > (wwncol - col) / 2) {
+ if (tt.tt_setinsert != 0 && nvis > (wwncol - col) / 2
+ && col != wwncol - 1) {
register union ww_char *p, *q;
(*tt.tt_setinsert)(1);
register union ww_char *p, *q;
(*tt.tt_setinsert)(1);