diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2009-06-04 23:39:38 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2009-06-04 23:39:38 +0000 |
commit | 6260330c332daf1197d0218472e43fd2e7750645 (patch) | |
tree | 9f4420a7b6a336fb6c5a8a2d33b2954ad42f9e1d /usr.bin/mg/help.c | |
parent | a513404baf363e211790bd230dd8448444415fbb (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/help.c')
-rw-r--r-- | usr.bin/mg/help.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c index dce1c76bef0..bbf63775ae7 100644 --- a/usr.bin/mg/help.c +++ b/usr.bin/mg/help.c @@ -1,4 +1,4 @@ -/* $OpenBSD: help.c,v 1.31 2005/12/14 07:11:44 kjell Exp $ */ +/* $OpenBSD: help.c,v 1.32 2009/06/04 23:39:37 kjell Exp $ */ /* This file is in the public domain. */ @@ -121,7 +121,7 @@ wallchart(int f, int n) if ((addline(bp, "Global bindings:") == FALSE) || (showall(bp, fundamental_map, "") == FALSE)) return (FALSE); - return (popbuftop(bp)); + return (popbuftop(bp, WNONE)); } static int @@ -205,7 +205,7 @@ apropos_command(int f, int n) } } free_file_list(fnames); - return (popbuftop(bp)); + return (popbuftop(bp, WNONE)); } static int |