summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-10-14 06:44:50 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-10-14 06:44:50 +0000
commitfe5ec9403f14728b29380920df95eca3fdac745d (patch)
tree6e470b2418ad96a8e7030f06d71e4aba0c2bd310 /usr.bin
parent27ade458e6688f238d0be65a6e9340e42c984aac (diff)
Whoops. C-x C-v (filevisitalt) didn't work on inital scratch buffer.
It does now. Noted by deraadt.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c
index 18301b0cefe..e0e7e52f304 100644
--- a/usr.bin/mg/buffer.c
+++ b/usr.bin/mg/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.48 2005/10/13 20:28:49 deraadt Exp $ */
+/* $OpenBSD: buffer.c,v 1.49 2005/10/14 06:44:49 kjell Exp $ */
/* This file is in the public domain. */
@@ -138,7 +138,7 @@ killbuffer(BUFFER *bp)
if (bp1 == NULL) {
/* only one buffer. see if it's *scratch* */
if (bp == bfind("*scratch*", FALSE))
- return (FALSE);
+ return (TRUE);
/* create *scratch* for alternate buffer */
if ((bp1 = bfind("*scratch*", TRUE)) == NULL)
return (FALSE);