w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 5a2c2685aea649d57dabd8adeb9e95ea36317cf8
parent dd3523d27d50687c5686ba550a2f30a2c540c4c8
Author: ukai <ukai>
Date:   Mon, 18 Nov 2002 17:29:28 +0000

[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:
MChangeLog | 6++++++
Mmain.c | 29+++++++++++++++--------------
2 files changed, 21 insertions(+), 14 deletions(-)

diff --git 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 diff --git a/main.c b/main.c @@ -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;