diff options
| author | 1996-08-16 17:58:11 +0000 | |
|---|---|---|
| committer | 1996-08-16 17:58:11 +0000 | |
| commit | a513d41b3acf15c2866529cf5411ee12cbfb622c (patch) | |
| tree | 05b769e924b6939407444fea6180794af56e48c5 /usr.bin/vi/common/options.c | |
| parent | fix for sun4 netbsd merges (diff) | |
| download | wireguard-openbsd-a513d41b3acf15c2866529cf5411ee12cbfb622c.tar.xz wireguard-openbsd-a513d41b3acf15c2866529cf5411ee12cbfb622c.zip | |
nvi 1.73
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"); |
