diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-19 15:54:47 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-19 15:54:47 +0000 |
commit | 382685bf0af987491fb06af4b5ad35b053ef7bd4 (patch) | |
tree | a1d368e4d447a7e0466355bb8704e4481489f2ca /file.c | |
parent | indent fix (diff) | |
download | w3m-382685bf0af987491fb06af4b5ad35b053ef7bd4.tar.gz w3m-382685bf0af987491fb06af4b5ad35b053ef7bd4.zip |
[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 (limited to 'file.c')
-rw-r--r-- | file.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.87 2002/03/15 19:02:40 ukai Exp $ */ +/* $Id: file.c,v 1.88 2002/03/19 15:54:47 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -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 |