4 * Copyright (c) 1992, 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 1992, 1993, 1994, 1995, 1996
7 * Keith Bostic. All rights reserved.
9 * See the LICENSE file for redistribution information.
15 static const char sccsid
[] = "Id: v_zexit.c,v 10.7 2001/06/25 15:19:37 skimo Exp (Berkeley) Date: 2001/06/25 15:19:37";
18 #include <sys/types.h>
19 #include <sys/queue.h>
22 #include <bitstring.h>
27 #include "../common/common.h"
32 * Save the file and exit.
34 * PUBLIC: int v_zexit __P((SCR *, VICMD *));
37 v_zexit(SCR
*sp
, VICMD
*vp
)
39 /* Write back any modifications. */
40 if (F_ISSET(sp
->ep
, F_MODIFIED
) &&
41 file_write(sp
, NULL
, NULL
, NULL
, FS_ALL
))
44 /* Check to make sure it's not a temporary file. */
48 /* Check for more files to edit. */