diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-18 16:46:48 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-18 16:46:48 +0000 |
commit | c2b1e4fa7051ef65ca23ca978727578ce86dbeff (patch) | |
tree | 48879c7bc487234265fed9b6f9eea1d1b30bc478 /main.c | |
parent | [w3m-dev 03443] Can't display "echo only_one_line | w3m" (diff) | |
download | w3m-c2b1e4fa7051ef65ca23ca978727578ce86dbeff.tar.gz w3m-c2b1e4fa7051ef65ca23ca978727578ce86dbeff.zip |
[w3m-dev 03445] download list for "w3m foo.tar.gz"
* main.c (main): display download list
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.140 2002/11/15 16:46:12 ukai Exp $ */ +/* $Id: main.c,v 1.141 2002/11/18 16:46:52 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -927,6 +927,21 @@ main(int argc, char **argv, char **envp) w3m_exit(0); } + if (add_download_list) { + add_download_list = FALSE; + if (!FirstTab) { + FirstTab = LastTab = CurrentTab = newTab(); + nTab = 1; + } + if (!Firstbuf || Firstbuf == NO_BUFFER) { + Firstbuf = Currentbuf = newBuffer(INIT_BUFFER_WIDTH); + Currentbuf->bufferprop = BP_INTERNAL | BP_NO_URL; + Currentbuf->buffername = DOWNLOAD_LIST_TITLE; + } + else + Currentbuf = Firstbuf; + ldDL(); + } if (!FirstTab || !Firstbuf || Firstbuf == NO_BUFFER) { if (newbuf == NO_BUFFER) { if (fmInitialized) |