[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>
This commit is contained in:
@@ -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>
|
2002-11-19 Fumitoshi UKAI <ukai@debian.or.jp>
|
||||||
|
|
||||||
* NEWS: rc: open_tab_dl_list
|
* NEWS: rc: open_tab_dl_list
|
||||||
@@ -4849,4 +4855,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-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 $
|
||||||
|
|||||||
@@ -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
|
#define MAINPROGRAM
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -5932,17 +5932,7 @@ download_action(struct parsed_tagarg *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (FirstDL)
|
ldDL();
|
||||||
ldDL();
|
|
||||||
else {
|
|
||||||
if (Currentbuf == Firstbuf && Currentbuf->nextBuffer == NULL) {
|
|
||||||
if (nTab > 1)
|
|
||||||
deleteTab(CurrentTab);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
delBuffer(Currentbuf);
|
|
||||||
displayBuffer(Currentbuf, B_FORCE_REDRAW);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -5970,12 +5960,23 @@ ldDL(void)
|
|||||||
int reload;
|
int reload;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!FirstDL)
|
|
||||||
return;
|
|
||||||
if (Currentbuf->bufferprop & BP_INTERNAL &&
|
if (Currentbuf->bufferprop & BP_INTERNAL &&
|
||||||
!strcmp(Currentbuf->buffername, DOWNLOAD_LIST_TITLE))
|
!strcmp(Currentbuf->buffername, DOWNLOAD_LIST_TITLE))
|
||||||
delete = TRUE;
|
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();
|
_newT();
|
||||||
prev = Currentbuf;
|
prev = Currentbuf;
|
||||||
delete = TRUE;
|
delete = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user