mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Corrected computing cell count for html select in UTF-8.
This commit is contained in:
parent
546539b25e
commit
bbd24d7bf4
@ -492,7 +492,13 @@ end_parse:
|
||||
max_width = 0;
|
||||
for (i = 0; i < order; i++) {
|
||||
if (!labels[i]) continue;
|
||||
int_lower_bound(&max_width, strlen(labels[i]));
|
||||
#ifdef CONFIG_UTF_8
|
||||
if (html_context->options->utf8)
|
||||
int_lower_bound(&max_width,
|
||||
utf8_ptr2cells(labels[i], NULL));
|
||||
else
|
||||
#endif /* CONFIG_UTF_8 */
|
||||
int_lower_bound(&max_width, strlen(labels[i]));
|
||||
}
|
||||
|
||||
for (i = 0; i < max_width; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user