If popup box have 10 entries and numbers act as arrows are not true and if user scroll with arrows to bottom, on 10th entry strange thing appear. Cause for this is probably this line from LYhandlePopupList function
num_choices = LYarrayLength(choices) - 1; which should not be decreased for one. if that line stay as is; there is only two lines which remain to change: just numbers are in/de/creased by one. first from FormatChoiceNum function: int digits = (num_choices > 9) ? 2 : 1; ---> int digits = (num_choices
8) ? 2 : 1;
and second from LYhandlePopupList itself which incorrectly count digits of Lnum sprintf(Cnum, "%d: ", num_choices); ---> sprintf(Cnum, "%d: ", num_choices + 1); changing num_choice would mean that more that two lines need changes, and if not properly done lynx may crash. I hope that this fix for this bug did not broke anything other. _______________________________________________ Lynx-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lynx-dev
