aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-18 16:46:48 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-18 16:46:48 +0000
commitc2b1e4fa7051ef65ca23ca978727578ce86dbeff (patch)
tree48879c7bc487234265fed9b6f9eea1d1b30bc478 /main.c
parent[w3m-dev 03443] Can't display "echo only_one_line | w3m" (diff)
downloadw3m-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 '')
-rw-r--r--main.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0960f78..e51f70e 100644
--- a/main.c
+++ b/main.c
@@ -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)