aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog8
-rw-r--r--main.c31
2 files changed, 23 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index f46ea51..017e6cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-19 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03447] Re: Open download list panel on new tab
+ * main.c (download_action): buffer management deleted
+ (ldDL): buffer management moved here
+
2002-11-19 Fumitoshi UKAI <ukai@debian.or.jp>
* NEWS: rc: open_tab_dl_list
@@ -4849,4 +4855,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.530 2002/11/18 17:27:01 ukai Exp $
+$Id: ChangeLog,v 1.531 2002/11/18 17:29:28 ukai Exp $
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;