4 * Copyright (c) 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 1993, 1994, 1995, 1996
7 * Keith Bostic. All rights reserved.
9 * See the LICENSE file for redistribution information.
15 static const char sccsid
[] = "Id: ex_open.c,v 10.8 2001/06/25 15:19:17 skimo Exp (Berkeley) Date: 2001/06/25 15:19:17";
18 #include <sys/types.h>
19 #include <sys/queue.h>
21 #include <bitstring.h>
25 #include "../common/common.h"
28 * ex_open -- :[line] o[pen] [/pattern/] [flags]
30 * Switch to single line "open" mode.
32 * PUBLIC: int ex_open __P((SCR *, EXCMD *));
35 ex_open(SCR
*sp
, EXCMD
*cmdp
)
37 /* If open option off, disallow open command. */
38 if (!O_ISSET(sp
, O_OPEN
)) {
40 "140|The open command requires that the open option be set");
44 msgq(sp
, M_ERR
, "141|The open command is not yet implemented");