aboutsummaryrefslogtreecommitdiffstats
path: root/history.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-26 17:24:01 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-26 17:24:01 +0000
commit843221c52324b0a25431c1bd2472d93fa714d0fa (patch)
tree36df5e8f54c46c50751195562ccc1e787e272786 /history.c
parent[w3m-dev 02913] wrong table width calculation (diff)
downloadw3m-843221c52324b0a25431c1bd2472d93fa714d0fa.tar.gz
w3m-843221c52324b0a25431c1bd2472d93fa714d0fa.zip
[w3m-dev 02914]
* history.c (copyHist): added * history.h (copyHist): ditto * main.c (goURL0): copyHist(URLHist), push current and anchor URLs default set by DefaultURLString From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--history.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/history.c b/history.c
index 44f3d75..2ecc731 100644
--- a/history.c
+++ b/history.c
@@ -1,4 +1,4 @@
-/* $Id: history.c,v 1.6 2001/12/10 17:02:44 ukai Exp $ */
+/* $Id: history.c,v 1.7 2002/01/26 17:24:01 ukai Exp $ */
#include "fm.h"
#ifdef USE_HISTORY
@@ -82,6 +82,20 @@ newHist()
return hist;
}
+Hist *
+copyHist(Hist *hist)
+{
+ Hist *new;
+ HistItem *item;
+
+ if (hist == NULL)
+ return NULL;
+ new = newHist();
+ for (item = hist->list->first; item; item = item->next)
+ pushHist(new, (char *)item->ptr);
+ return new;
+}
+
HistItem *
unshiftHist(Hist *hist, char *ptr)
{