-/* Copyright (c) 1979 Regents of the University of California */
+/* Copyright (c) 1980 Regents of the University of California */
+static char *sccsid = "@(#)ex_v.c 6.1 10/18/80";
#include "ex.h"
#include "ex_re.h"
#include "ex_tty.h"
{
register char *ic;
char atube[TUBESIZE + LBSIZE];
- register int f;
+ register ttymode f;
ovbeg();
if (peekchar() == '/') {
}
ovend(f)
- int f;
+ ttymode f;
{
splitw++;
{
register int c;
char atube[TUBESIZE + LBSIZE];
- register int f;
+ register ttymode f;
if (!CA && UP == NOSTR) {
if (initev) {
goto toopen;
error("Visual requires clear screen capability");
}
+ if (NS && !SF) {
+ if (initev)
+ goto toopen;
+ error("Visual requires scrolling");
+ }
ovbeg();
bastate = VISUAL;
c = 0;
undap1 = one;
undap2 = dol + 1;
undkind = UNDALL;
+ if (undadot <= zero || undadot > dol)
+ undadot = zero+1;
}
/*
vtube0 = atube;
vclrbyte(atube, WCOLS * (WECHO - ZERO + 1));
for (i = 0; i < ZERO; i++)
- vtube[i] = (char *) -20000;
+ vtube[i] = (char *) 0;
for (; i <= WECHO; i++)
vtube[i] = atube, atube += WCOLS;
for (; i < TUBELINES; i++)
- vtube[i] = (char *) -20000;
+ vtube[i] = (char *) 0;
vutmp = atube;
vundkind = VNONE;
vUNDdot = 0;