aboutsummaryrefslogtreecommitdiff
path: root/editors/mg/files/patch-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/mg/files/patch-main.c')
-rw-r--r--editors/mg/files/patch-main.c26
1 files changed, 6 insertions, 20 deletions
diff --git a/editors/mg/files/patch-main.c b/editors/mg/files/patch-main.c
index ec956ee56e0c..f712ba61ff81 100644
--- a/editors/mg/files/patch-main.c
+++ b/editors/mg/files/patch-main.c
@@ -1,4 +1,4 @@
---- main.c.orig 2023-10-20 07:56:18 UTC
+--- main.c.orig 2023-10-24 10:26:02 UTC
+++ main.c
@@ -16,7 +16,7 @@
#include <string.h>
@@ -9,7 +9,7 @@
#include "def.h"
#include "kbd.h"
-@@ -43,6 +43,10 @@ struct mgwin *wheadp; /* MGWIN listhead */
+@@ -43,6 +43,10 @@ char pat[NPAT]; /* pattern */
struct vhead varhead; /* Variable list head */
char pat[NPAT]; /* pattern */
@@ -20,28 +20,14 @@
static void edinit(struct buffer *);
static void pty_init(void);
static __dead void usage(void);
-@@ -71,10 +75,6 @@ main(int argc, char **argv)
+@@ -70,10 +74,6 @@ main(int argc, char **argv)
+ int o, i, nfiles;
int nobackups = 0;
struct buffer *bp = NULL;
-
+-
- if (pledge("stdio rpath wpath cpath fattr chown getpw tty proc exec",
- NULL) == -1)
- err(1, "pledge");
--
+
while ((o = getopt(argc, argv, "nRb:f:u:")) != -1)
switch (o) {
- case 'b':
-@@ -167,9 +167,11 @@ main(int argc, char **argv)
- ffclose(ffp, NULL);
- }
-
-- if (batch)
-+ if (batch) {
-+ vttidy();
- return (0);
--
-+ }
-+
- /*
- * Now ensure any default buffer modes from the startup file are
- * given to any files opened when parsing the startup file.