mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Return number of really processed chars. In that case 0
This commit is contained in:
parent
8e438aaa33
commit
a3e0caca57
@ -401,12 +401,12 @@ set_hline(struct html_context *html_context, unsigned char *chars, int charslen,
|
|||||||
assert(charslen >= 0);
|
assert(charslen >= 0);
|
||||||
|
|
||||||
if (realloc_spaces(part, x + charslen))
|
if (realloc_spaces(part, x + charslen))
|
||||||
return len;
|
return 0;
|
||||||
|
|
||||||
if (part->document) {
|
if (part->document) {
|
||||||
if (realloc_line(html_context, part->document,
|
if (realloc_line(html_context, part->document,
|
||||||
Y(y), X(x) + charslen - 1))
|
Y(y), X(x) + charslen - 1))
|
||||||
return len;
|
return 0;
|
||||||
if (utf8) {
|
if (utf8) {
|
||||||
unsigned char *end = chars + charslen;
|
unsigned char *end = chars + charslen;
|
||||||
unicode_val_T data;
|
unicode_val_T data;
|
||||||
@ -428,7 +428,7 @@ set_hline(struct html_context *html_context, unsigned char *chars, int charslen,
|
|||||||
goto good_char;
|
goto good_char;
|
||||||
} else {
|
} else {
|
||||||
/* Still not full char */
|
/* Still not full char */
|
||||||
return len;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user