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
(no message)
[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
f74e411
..
e90be31
100644
(file)
--- a/
usr/src/usr.bin/ex/ex_set.c
+++ b/
usr/src/usr.bin/ex/ex_set.c
@@
-1,7
+1,8
@@
-/* Copyright (c) 198
0
Regents of the University of California */
-static char *sccsid = "@(#)ex_set.c
5.1
%G%";
+/* Copyright (c) 198
1
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.
@@
-93,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: