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
fix for portability on systems with big uids. THIS CHANGES TEMP
[unix-history]
/
usr
/
src
/
usr.bin
/
ex
/
ex_set.c
diff --git
a/usr/src/usr.bin/ex/ex_set.c
b/usr/src/usr.bin/ex/ex_set.c
index
0939742
..
e90be31
100644
(file)
--- a/
usr/src/usr.bin/ex/ex_set.c
+++ b/
usr/src/usr.bin/ex/ex_set.c
@@
-1,6
+1,8
@@
-/* Copyright (c) 1979 Regents of the University of California */
+/* Copyright (c) 1981 Regents of the University of California */
+static char *sccsid = "@(#)ex_set.c 7.1 %G%";
#include "ex.h"
#include "ex_temp.h"
#include "ex.h"
#include "ex_temp.h"
+#include "ex_tty.h"
/*
* Set command.
/*
* Set command.
@@
-92,8
+94,11
@@
printone:
op->ovalue = getnum();
if (value(TABSTOP) <= 0)
value(TABSTOP) = TABS;
op->ovalue = getnum();
if (value(TABSTOP) <= 0)
value(TABSTOP) = TABS;
- if (op == &options[WINDOW])
+ if (op == &options[WINDOW]) {
+ if (value(WINDOW) >= LINES)
+ value(WINDOW) = LINES-1;
vsetsiz(value(WINDOW));
vsetsiz(value(WINDOW));
+ }
break;
case STRING:
break;
case STRING: