mirror of
https://github.com/tildeclub/ex-vi.git
synced 2026-06-23 12:19:24 +00:00
* vi no longer dies with a segmentation fault if a line does not fit on the
screen after an insertion.
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_vadj.c 1.10 (gritter) 11/23/04";
|
||||
static char sccsid[] = "@(#)ex_vadj.c 1.11 (gritter) 3/4/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -167,6 +167,8 @@ vreopen(int p, int lineno, int l)
|
||||
register int d;
|
||||
register struct vlinfo *vp = &vlinfo[l];
|
||||
|
||||
if (p < 0)
|
||||
error("Line too long to fit on screen");
|
||||
d = vp->vdepth;
|
||||
if (d == 0 || (vp->vflags & VDIRT))
|
||||
vp->vdepth = d = vdepth();
|
||||
|
||||
Reference in New Issue
Block a user