summaryrefslogtreecommitdiff
path: root/usr.bin/mg/main.c
diff options
context:
space:
mode:
authorMark Lumsden <lum@cvs.openbsd.org>2021-05-03 12:18:44 +0000
committerMark Lumsden <lum@cvs.openbsd.org>2021-05-03 12:18:44 +0000
commitc7935712d60f6fb456292b30dbb504c8acf699db (patch)
tree0d020624d0e5f96765a5ab1feb07db57f0ca8573 /usr.bin/mg/main.c
parent8b119c0b86ab00aae017073bbed2b574cea3729b (diff)
When parsing a variable value within double quotes, allow an escaped
\" to be accomodated for. Also, move the variable structure to be global in scope within mg.
Diffstat (limited to 'usr.bin/mg/main.c')
-rw-r--r--usr.bin/mg/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index ac2175adb28..8aab7a75316 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.89 2021/03/20 09:00:49 lum Exp $ */
+/* $OpenBSD: main.c,v 1.90 2021/05/03 12:18:43 lum Exp $ */
/* This file is in the public domain. */
@@ -40,6 +40,7 @@ struct buffer *curbp; /* current buffer */
struct buffer *bheadp; /* BUFFER list head */
struct mgwin *curwp; /* current window */
struct mgwin *wheadp; /* MGWIN listhead */
+struct vhead varhead; /* Variable list head */
char pat[NPAT]; /* pattern */
static void edinit(struct buffer *);