rework initial error handling -- since we check for any screens on
[nvi.git] / ex / ex_open.c
blob0ba4571ec2c8da7dfa635c521f64c16964078059
1 /*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
5 * %sccs.include.redist.c%
6 */
8 #ifndef lint
9 static char sccsid[] = "$Id: ex_open.c,v 8.2 1993/10/03 15:23:53 bostic Exp $ (Berkeley) $Date: 1993/10/03 15:23:53 $";
10 #endif /* not lint */
12 #include <sys/types.h>
14 #include "vi.h"
15 #include "excmd.h"
18 * ex_open -- :[line] o[pen] [/pattern/] [flags]
20 * Switch to single line "open" mode.
22 int
23 ex_open(sp, ep, cmdp)
24 SCR *sp;
25 EXF *ep;
26 EXCMDARG *cmdp;
28 /* If open option off, disallow open command. */
29 if (!O_ISSET(sp, O_OPEN)) {
30 msgq(sp, M_ERR,
31 "The open command requires that the open option be set.");
32 return (1);
35 msgq(sp, M_ERR, "The open command is not yet implemented.");
36 return (1);