Subject: CVS commit: [netbsd-1-6] src/usr.bin/vi/vi
To: None <source-changes@netbsd.org>
From: grant beattie <grant@netbsd.org>
List: source-changes
Date: 06/19/2003 02:29:10
Module Name:	src
Committed By:	grant
Date:		Thu Jun 19 02:29:10 UTC 2003

Modified Files:
	src/usr.bin/vi/vi [netbsd-1-6]: v_txt.c

Log Message:
Pull up revision 1.11 (requested by aymeric in ticket #1320):

When an error occurs in v_txt(), leave input mode too.
Otherwise, (among other things) db_get() thinks it can re-use the TEXT buffers
when it's not true, leading to a crash because that TEXT buffer will be
released just before it is actually used to create a new one.
This fixes PR#21797.


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.9.2.1 src/usr.bin/vi/vi/v_txt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.