summaryrefslogtreecommitdiff
path: root/usr.bin/mg/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mg/buffer.c')
-rw-r--r--usr.bin/mg/buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c
index 5dd4381d3d9..a5b245a745b 100644
--- a/usr.bin/mg/buffer.c
+++ b/usr.bin/mg/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.110 2021/03/18 18:09:21 lum Exp $ */
+/* $OpenBSD: buffer.c,v 1.111 2021/03/23 18:40:29 lum Exp $ */
/* This file is in the public domain. */
@@ -144,7 +144,7 @@ poptobuffer(int f, int n)
return (ABORT);
if (bufp[0] == '\0' && curbp->b_altb != NULL)
bp = curbp->b_altb;
- else if ((bp = bfind(bufn, TRUE)) == NULL)
+ else if ((bp = bfind(bufp, TRUE)) == NULL)
return (FALSE);
if (bp == curbp)
return (splitwind(f, n));
@@ -178,7 +178,7 @@ killbuffer_cmd(int f, int n)
return (ABORT);
else if (bufp[0] == '\0')
bp = curbp;
- else if ((bp = bfind(bufn, FALSE)) == NULL)
+ else if ((bp = bfind(bufp, FALSE)) == NULL)
return (FALSE);
ret = killbuffer(bp);
eerase();
@@ -782,7 +782,7 @@ bufferinsert(int f, int n)
return (ABORT);
if (bufp[0] == '\0' && curbp->b_altb != NULL)
bp = curbp->b_altb;
- else if ((bp = bfind(bufn, FALSE)) == NULL)
+ else if ((bp = bfind(bufp, FALSE)) == NULL)
return (FALSE);
if (bp == curbp)