summaryrefslogtreecommitdiff
path: root/editors/mg/files/patch-re_search.c
diff options
context:
space:
mode:
authorMark Willson <cdr.nil@gmail.com>2024-04-08 18:54:47 +0200
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2024-04-11 08:14:33 +0200
commit37579ae72a820c019ca16792b56274b5aa4c5544 (patch)
tree07dce27dd5bad8008d3e6cd56538f131475e1e78 /editors/mg/files/patch-re_search.c
parentnet-p2p/jackett: update to 0.21.2324 (diff)
editors/mg: Update to 20240405
ChangeLog: https://cvsweb.openbsd.org/src/usr.bin/mg/ * Reinstate space-to-tabstop entry in manpage * Call vttidy in the exit path for batch mode * Fix hang for (regexp-replace "^.*$" "") PR: 278248 Reported by: cdr.nil@gmail.com
Diffstat (limited to 'editors/mg/files/patch-re_search.c')
-rw-r--r--editors/mg/files/patch-re_search.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/editors/mg/files/patch-re_search.c b/editors/mg/files/patch-re_search.c
new file mode 100644
index 000000000000..a37c830b014a
--- /dev/null
+++ b/editors/mg/files/patch-re_search.c
@@ -0,0 +1,15 @@
+--- re_search.c.orig 2024-04-06 09:29:51 UTC
++++ re_search.c
+@@ -342,10 +342,9 @@ re_forwsrch(void)
+ if (tbo == clp->l_used)
+ /*
+ * Don't start matching past end of line -- must move to
+- * beginning of next line, unless line is empty or at
+- * end of file.
++ * beginning of next line, unless at end of file.
+ */
+- if (clp != curbp->b_headp && llength(clp) != 0) {
++ if (clp != curbp->b_headp) {
+ clp = lforw(clp);
+ tdotline++;
+ tbo = 0;