w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 129fa90f14e85910e96727a2ed22d351fc0286c6
parent 9ac929ccb7ac16664d3ec7cd978f3b2e9cb54e4b
Author: ukai <ukai>
Date:   Tue, 19 Mar 2002 15:54:47 +0000

[w3m-dev 03135] commit of [w3m-dev 03006] is incomplete.
* file.c (HTMLlineproc2body): check form_int fid attr
		update forms[]
		fix buf->formlist
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 7+++++++
Mfile.c | 7+++++--
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,10 @@ +2002-03-20 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03135] commit of [w3m-dev 03006] is incomplete. + * file.c (HTMLlineproc2body): check form_int fid attr + update forms[] + fix buf->formlist + 2002-03-16 Fumitoshi UKAI <ukai@debian.or.jp> * part of [w3m-dev-en 00713] contrib: unofficial "current page info" patch, updated for w3m-0.3 diff --git a/file.c b/file.c @@ -5078,7 +5078,8 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) internal = HTML_N_INTERNAL; break; case HTML_FORM_INT: - process_form(tag); + if (parsedtag_get_value(tag, ATTR_FID, &form_id)) + process_form_int(tag, form_id); break; case HTML_TEXTAREA_INT: if (parsedtag_get_value(tag, ATTR_TEXTAREANUMBER, @@ -5187,12 +5188,14 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) } if (w3m_debug) fclose(debug); + for (form_id = 1; form_id <= form_max; form_id++) + forms[form_id]->next = forms[form_id - 1]; + buf->formlist = (form_max >= 0) ? forms[form_max] : NULL; if (n_textarea) addMultirowsForm(buf, buf->formitem); #ifdef USE_IMAGE addMultirowsImg(buf, buf->img); #endif - buf->formlist = (form_max >= 0) ? forms[form_max] : NULL; } void