update to 1.01
[nvi.git] / ex / ex_set.c
blob7552ea157f35868a0f0f7b0b17cc7114a19dc2cc
1 /*-
2 * Copyright (c) 1992, 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_set.c,v 8.2 1993/10/03 17:32:55 bostic Exp $ (Berkeley) $Date: 1993/10/03 17:32:55 $";
10 #endif /* not lint */
12 #include <sys/types.h>
14 #include "vi.h"
15 #include "excmd.h"
17 int
18 ex_set(sp, ep, cmdp)
19 SCR *sp;
20 EXF *ep;
21 EXCMDARG *cmdp;
23 switch(cmdp->argc) {
24 case 0:
25 opts_dump(sp, CHANGED_DISPLAY);
26 break;
27 default:
28 opts_set(sp, cmdp->argv);
29 break;
31 return (0);