[w3m-dev 01555] Re: some fixes for <select>

From: Hironori Sakamoto (hsaka@mth.biglobe.ne.jp)
Date: Thu Dec 21 2000 - 11:03:39 CST

  • Next message: Okabe Katsuya: "[w3m-dev 01557] Re: some fixes (Re: <P> in <DL>)"

    $B:dK\$G$9!#(B

    >> Subject: [w3m-dev 01515] some fixes for <select>
    >> <select>$B!A(B<option> $B$K4X$7$F4v$D$+$N2~NI$r9T$$$^$7$?!#(B

    <select>
    </select>

    $B$NMM$J(B <option> $B$J$7$N(B <select> $B$,$"$k$HMn$A$kMM$K$7$F$7$^$C$F(B
    $B$$$^$7$?$N$G=$@5$G$9!#(B
    -----------------------------------
    $B:dK\(B $B9@B'(B <hsaka@mth.biglobe.ne.jp>
     http://www2u.biglobe.ne.jp/~hsaka/

    diff -u file.c.orig file.c
    --- file.c.orig Fri Dec 22 01:48:07 2000
    +++ file.c Fri Dec 22 01:39:46 2000
    @@ -2341,11 +2341,12 @@
     process_n_select(void)
     {
         if (cur_select == NULL)
    - return;
    + return NULL;
         process_option();
     #ifdef MENU_SELECT
         if (!select_is_multiple && n_select < MAX_SELECT) {
    - Strcat(select_str, textfieldrep(chooseSelectOption(
    + if (select_option[n_select].first)
    + Strcat(select_str, textfieldrep(chooseSelectOption(
                     select_option[n_select].first, CHOOSE_OPTION),
                     cur_option_maxwidth));
             Strcat_charp(select_str, "</input_alt>]</pre_int>");
    diff -u form.c.orig form.c
    --- form.c.orig Fri Dec 22 01:46:16 2000
    +++ form.c Fri Dec 22 01:46:01 2000
    @@ -500,6 +500,8 @@
     chooseSelectOption(FormSelectOptionItem * item, int choose_type)
     {
         Str chosen;
    + if (item == NULL)
    + return NULL;
         if (choose_type == CHOOSE_OPTION)
             chosen = item->label;
         else



    This archive was generated by hypermail 2b29 : Thu Dec 21 2000 - 11:08:54 CST