* 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:
Gunnar Ritter 2005-03-04 12:22:53 +00:00
parent 451eeb404b
commit be3347f5be
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Release ...
* vi no longer dies with a segmentation fault if a line does not fit on the
screen after an insertion.
Release 2/25/05
* Traditional regular expressions can now be used with multibyte characters.
* When the 'ignorecase' option is toggled, saved regular expressions are now

View File

@ -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();

View File

@ -70,12 +70,12 @@
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Sccsid @(#)ex_version.c 1.129 (gritter) 2/25/05
* Sccsid @(#)ex_version.c 1.130 (gritter) 3/4/05
*/
#include "ex.h"
static char *versionstring = "@(#)Version 4.0 (gritter) 2/25/05";
static char *versionstring = "@(#)Version 4.0 (gritter) 3/4/05";
void
printver(void)