View | Details | Raw Unified | Return to bug 278248
Collapse All | Expand All

(-)b/editors/mg/Makefile (-2 / +1 lines)
Lines 1-6 Link Here
1
PORTNAME=	mg
1
PORTNAME=	mg
2
DISTVERSION=	20231016
2
DISTVERSION=	20240405
3
PORTREVISION=	1
4
PORTEPOCH=	1
3
PORTEPOCH=	1
5
CATEGORIES=	editors
4
CATEGORIES=	editors
6
MASTER_SITES=   https://hydrus.org.uk/downloads/
5
MASTER_SITES=   https://hydrus.org.uk/downloads/
(-)b/editors/mg/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1698048672
1
TIMESTAMP = 1712395301
2
SHA256 (mg-20231016.tar.gz) = ef16fb32aae1dc132d4250039eb0a057826c7e888beb39bdf4748c0a4b0179e9
2
SHA256 (mg-20240405.tar.gz) = abda55c6c53e8316324d56a9851865ada13f9cd82295f3757de7cb4b83bead57
3
SIZE (mg-20231016.tar.gz) = 154296
3
SIZE (mg-20240405.tar.gz) = 156768
(-)b/editors/mg/files/patch-main.c (-20 / +6 lines)
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.
(-)b/editors/mg/files/patch-re_search.c (-1 / +15 lines)
Added Link Here
0
- 
1
--- re_search.c.orig	2024-04-06 09:29:51 UTC
2
+++ re_search.c
3
@@ -342,10 +342,9 @@ re_forwsrch(void)
4
 	if (tbo == clp->l_used)
5
 		/*
6
 		 * Don't start matching past end of line -- must move to
7
-		 * beginning of next line, unless line is empty or at
8
-		 * end of file.
9
+		 * beginning of next line, unless at end of file.
10
 		 */
11
-		if (clp != curbp->b_headp && llength(clp) != 0) {
12
+		if (clp != curbp->b_headp) {
13
 			clp = lforw(clp);
14
 			tdotline++;
15
 			tbo = 0;

Return to bug 278248