summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/options.c
diff options
context:
space:
mode:
authormichaels <michaels@cvs.openbsd.org>1996-08-16 17:58:49 +0000
committermichaels <michaels@cvs.openbsd.org>1996-08-16 17:58:49 +0000
commit418c0bbade1dcb322b7abdbed4064993de8086c2 (patch)
tree4bad4d39a1f432f68cae3d673074f4b724aba879 /usr.bin/vi/common/options.c
parent445816164da4c953591f89549fdd9bc8825aa8c8 (diff)
nvi 1.73
Diffstat (limited to 'usr.bin/vi/common/options.c')
-rw-r--r--usr.bin/vi/common/options.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/vi/common/options.c b/usr.bin/vi/common/options.c
index 891e7333edb..9dea74ddff3 100644
--- a/usr.bin/vi/common/options.c
+++ b/usr.bin/vi/common/options.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "@(#)options.c 10.46 (Berkeley) 6/26/96";
+static const char sccsid[] = "@(#)options.c 10.48 (Berkeley) 8/10/96";
#endif /* not lint */
#include <sys/types.h>
@@ -135,6 +135,8 @@ OPTLIST const optlist[] = {
{"optimize", NULL, OPT_1BOOL, 0},
/* O_PARAGRAPHS 4BSD */
{"paragraphs", f_paragraph, OPT_STR, 0},
+/* O_PATH 4.4BSD */
+ {"path", NULL, OPT_STR, 0},
/* O_PRINT 4.4BSD */
{"print", f_print, OPT_STR, 0},
/* O_PROMPT 4BSD */
@@ -215,7 +217,7 @@ OPTLIST const optlist[] = {
/* O_WINDOW 4BSD */
{"window", f_window, OPT_NUM, 0},
/* O_WINDOWNAME 4BSD */
- {"windowname", f_windowname, OPT_0BOOL, 0},
+ {"windowname", NULL, OPT_0BOOL, 0},
/* O_WRAPLEN 4.4BSD */
{"wraplen", NULL, OPT_NUM, 0},
/* O_WRAPMARGIN 4BSD */
@@ -346,6 +348,8 @@ opts_init(sp, oargs)
OI(O_MSGCAT, b1);
OI(O_REPORT, "report=5");
OI(O_PARAGRAPHS, "paragraphs=IPLPPPQPP LIpplpipbp");
+ (void)snprintf(b1, sizeof(b1), "path=%s", "");
+ OI(O_PATH, b1);
(void)snprintf(b1, sizeof(b1), "recdir=%s", _PATH_PRESERVE);
OI(O_RECDIR, b1);
OI(O_SECTIONS, "sections=NHSHH HUnhsh");