aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-18 17:29:28 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-18 17:29:28 +0000
commit48b7be66cd3f923fd25f3129c1fd0b3844e37013 (patch)
tree1284ba4f4106056e0ca2bb4b460809e1f228f940 /main.c
parentNEWS: rc: open_tab_dl_list (diff)
downloadw3m-48b7be66cd3f923fd25f3129c1fd0b3844e37013.tar.gz
w3m-48b7be66cd3f923fd25f3129c1fd0b3844e37013.zip
[w3m-dev 03447] Re: Open download list panel on new tab
* main.c (download_action): buffer management deleted (ldDL): buffer management moved here From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'main.c')
-rw-r--r--main.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/main.c b/main.c
index f006293..e38f0d4 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.142 2002/11/18 17:26:07 ukai Exp $ */
+/* $Id: main.c,v 1.143 2002/11/18 17:29:32 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -5932,17 +5932,7 @@ download_action(struct parsed_tagarg *arg)
}
}
}
- if (FirstDL)
- ldDL();
- else {
- if (Currentbuf == Firstbuf && Currentbuf->nextBuffer == NULL) {
- if (nTab > 1)
- deleteTab(CurrentTab);
- }
- else
- delBuffer(Currentbuf);
- displayBuffer(Currentbuf, B_FORCE_REDRAW);
- }
+ ldDL();
}
void
@@ -5970,12 +5960,23 @@ ldDL(void)
int reload;
#endif
- if (!FirstDL)
- return;
if (Currentbuf->bufferprop & BP_INTERNAL &&
!strcmp(Currentbuf->buffername, DOWNLOAD_LIST_TITLE))
delete = TRUE;
- else if (open_tab_dl_list) {
+ if (!FirstDL) {
+ if (delete) {
+ Currentbuf->bufferprop &= ~BP_RELOAD;
+ if (Currentbuf == Firstbuf && Currentbuf->nextBuffer == NULL) {
+ if (nTab > 1)
+ deleteTab(CurrentTab);
+ }
+ else
+ delBuffer(Currentbuf);
+ displayBuffer(Currentbuf, B_FORCE_REDRAW);
+ }
+ return;
+ }
+ if (!delete && open_tab_dl_list) {
_newT();
prev = Currentbuf;
delete = TRUE;