2 * Copyright (c) 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1992, 1993, 1994, 1995, 1996
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
12 #include <sys/types.h>
13 #include <sys/queue.h>
16 #include <bitstring.h>
23 #include "../common/common.h"
30 * PUBLIC: int ex_stop(SCR *, EXCMD *);
33 ex_stop(SCR *sp, EXCMD *cmdp)
37 /* For some strange reason, the force flag turns off autowrite. */
38 if (!FL_ISSET(cmdp->iflags, E_C_FORCE) && file_aw(sp, FS_ALL))
41 if (sp->gp->scr_suspend(sp, &allowed))
44 ex_emsg(sp, NULL, EXM_NOSUSPEND);