commit a52cfe0535e4b785048209ba8a2ee99fb350377e
parent 1257b3c56e10b881fe44d33dae2f37889966ebf2
Author: ukai <ukai>
Date: Mon, 7 Apr 2003 15:23:57 +0000
[w3m-dev 03846] fix use_history
* main.c (main): move loadHistory
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,5 +1,10 @@
2003-04-08 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+ * [w3m-dev 03846] fix use_history
+ * main.c (main): move loadHistory
+
+2003-04-08 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 03844] w3mhelp.cgi update
* scripts/w3mhelp-funcdesc.en.pl.in: add %menu_funcdesc
* scripts/w3mhelp-funcdesc.ja.pl.in: add %menu_funcdesc
diff --git a/main.c b/main.c
@@ -409,10 +409,6 @@ main(int argc, char **argv, char **envp)
ShellHist = newHist();
TextHist = newHist();
URLHist = newHist();
-#ifdef USE_HISTORY
- if (UseHistory)
- loadHistory(URLHist);
-#endif /* not USE_HISTORY */
if (!non_null(HTTP_proxy) &&
((p = getenv("HTTP_PROXY")) ||
@@ -747,6 +743,10 @@ main(int argc, char **argv, char **envp)
initCookie();
#endif /* USE_COOKIE */
setLocalCookie(); /* setup cookie for local CGI */
+#ifdef USE_HISTORY
+ if (UseHistory)
+ loadHistory(URLHist);
+#endif /* not USE_HISTORY */
if (w3m_backend)
backend();