From 6da73298fc1d2e2584c1c1adaf75bf640064eb38 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 16 Nov 2001 03:58:49 +0000 Subject: [w3m-dev 02408] meta refresh From: Tsutomu Okada --- file.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 50900c0..93497b8 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.5 2001/11/16 03:33:28 ukai Exp $ */ +/* $Id: file.c,v 1.6 2001/11/16 03:58:49 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -3589,10 +3589,18 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env) refresh, cur_hseq++, q, q); push_str(obuf, s_tmp->length, tmp, PC_ASCII); flushline(h_env, obuf, envs[h_env->envc].indent, 0, h_env->limit); - if (!is_redisplay && refresh == 0) { + if (!is_redisplay && refresh == 0 && MetaRefresh) { pushEvent(FUNCNAME_goURL, s_tmp->ptr); /* pushEvent(deletePrevBuf,NULL); */ } +#ifdef USE_ALARM + else if (!is_redisplay && refresh > 0 && MetaRefresh) { + alarm_sec = refresh; + alarm_once = TRUE; + alarm_event.cmd = FUNCNAME_goURL; + alarm_event.user_data = s_tmp->ptr; + } +#endif } } return 1; -- cgit v1.2.3