-/* $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. */
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));
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();
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)