Lines 1-4
Link Here
|
1 |
--- main.c.orig 2023-10-20 07:56:18 UTC |
1 |
--- main.c.orig 2023-10-24 10:26:02 UTC |
2 |
+++ main.c |
2 |
+++ main.c |
3 |
@@ -16,7 +16,7 @@ |
3 |
@@ -16,7 +16,7 @@ |
4 |
#include <string.h> |
4 |
#include <string.h> |
Lines 9-15
Link Here
|
9 |
|
9 |
|
10 |
#include "def.h" |
10 |
#include "def.h" |
11 |
#include "kbd.h" |
11 |
#include "kbd.h" |
12 |
@@ -43,6 +43,10 @@ struct mgwin *wheadp; /* MGWIN listhead */ |
12 |
@@ -43,6 +43,10 @@ char pat[NPAT]; /* pattern */ |
13 |
struct vhead varhead; /* Variable list head */ |
13 |
struct vhead varhead; /* Variable list head */ |
14 |
char pat[NPAT]; /* pattern */ |
14 |
char pat[NPAT]; /* pattern */ |
15 |
|
15 |
|
Lines 20-47
Link Here
|
20 |
static void edinit(struct buffer *); |
20 |
static void edinit(struct buffer *); |
21 |
static void pty_init(void); |
21 |
static void pty_init(void); |
22 |
static __dead void usage(void); |
22 |
static __dead void usage(void); |
23 |
@@ -71,10 +75,6 @@ main(int argc, char **argv) |
23 |
@@ -70,10 +74,6 @@ main(int argc, char **argv) |
|
|
24 |
int o, i, nfiles; |
24 |
int nobackups = 0; |
25 |
int nobackups = 0; |
25 |
struct buffer *bp = NULL; |
26 |
struct buffer *bp = NULL; |
26 |
|
27 |
- |
27 |
- if (pledge("stdio rpath wpath cpath fattr chown getpw tty proc exec", |
28 |
- if (pledge("stdio rpath wpath cpath fattr chown getpw tty proc exec", |
28 |
- NULL) == -1) |
29 |
- NULL) == -1) |
29 |
- err(1, "pledge"); |
30 |
- err(1, "pledge"); |
30 |
- |
31 |
|
31 |
while ((o = getopt(argc, argv, "nRb:f:u:")) != -1) |
32 |
while ((o = getopt(argc, argv, "nRb:f:u:")) != -1) |
32 |
switch (o) { |
33 |
switch (o) { |
33 |
case 'b': |
|
|
34 |
@@ -167,9 +167,11 @@ main(int argc, char **argv) |
35 |
ffclose(ffp, NULL); |
36 |
} |
37 |
|
38 |
- if (batch) |
39 |
+ if (batch) { |
40 |
+ vttidy(); |
41 |
return (0); |
42 |
- |
43 |
+ } |
44 |
+ |
45 |
/* |
46 |
* Now ensure any default buffer modes from the startup file are |
47 |
* given to any files opened when parsing the startup file. |