-
+/* $OpenBSD: buffer.c,v 1.110 2021/03/18 18:09:21 lum Exp $ */
/* This file is in the public domain. */
usebufname(const char *bufp)
{
struct buffer *bp = NULL;
+ int ret;
if (bufp == NULL) {
if ((bp = bfind("*scratch*", TRUE)) == NULL)
/* and put it in current window */
curbp = bp;
- return (showbuffer(bp, curwp, WFFRAME | WFFULL));
+ ret = showbuffer(bp, curwp, WFFRAME | WFFULL);
+ eerase();
+
+ return (ret);
}
/*
{
struct buffer *bp;
char bufn[NBUFN], *bufp;
+ int ret;
if (f & FFRAND) /* dired mode 'q' */
bp = curbp;
bp = curbp;
else if ((bp = bfind(bufn, FALSE)) == NULL)
return (FALSE);
- return (killbuffer(bp));
+ ret = killbuffer(bp);
+ eerase();
+
+ return (ret);
}
int