summaryrefslogtreecommitdiff
path: root/usr.bin/mg/file.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2009-06-04 23:39:38 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2009-06-04 23:39:38 +0000
commit6260330c332daf1197d0218472e43fd2e7750645 (patch)
tree9f4420a7b6a336fb6c5a8a2d33b2954ad42f9e1d /usr.bin/mg/file.c
parenta513404baf363e211790bd230dd8448444415fbb (diff)
Add the notion of an "ephemeral" popup, so we can flag a window
for destruction at a later date. (in the process, add a window flag field) This fixes an issue noted by maja: namely, the *completion* window that pops up when you try to complete a filename on buffer load would destroy any second window that you happened to have open. ok maja@
Diffstat (limited to 'usr.bin/mg/file.c')
-rw-r--r--usr.bin/mg/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c
index 61cd03c23b5..ee345924c75 100644
--- a/usr.bin/mg/file.c
+++ b/usr.bin/mg/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.70 2009/06/04 02:23:37 kjell Exp $ */
+/* $OpenBSD: file.c,v 1.71 2009/06/04 23:39:37 kjell Exp $ */
/* This file is in the public domain. */
@@ -156,7 +156,7 @@ poptofile(int f, int n)
return (FALSE);
if (bp == curbp)
return (splitwind(f, n));
- if ((wp = popbuf(bp)) == NULL)
+ if ((wp = popbuf(bp, WNONE)) == NULL)
return (FALSE);
curbp = bp;
curwp = wp;