diff options
Diffstat (limited to 'usr.bin/vi/common/options.c')
-rw-r--r-- | usr.bin/vi/common/options.c | 8 |
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"); |