mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
parent
e86e1d0fa3
commit
461787013b
@ -454,7 +454,7 @@ set_hline(struct html_context *html_context, unsigned char *chars, int charslen,
|
|||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
unsigned char i;
|
unsigned char i;
|
||||||
broken_char: /* broken char */
|
|
||||||
for (i = 0; chars < end;i++) {
|
for (i = 0; chars < end;i++) {
|
||||||
part->document->buf[i] = *chars++;
|
part->document->buf[i] = *chars++;
|
||||||
}
|
}
|
||||||
@ -467,9 +467,7 @@ good_char:
|
|||||||
schar->data = (unicode_val_T)data;
|
schar->data = (unicode_val_T)data;
|
||||||
part->char_width[x] = 2;
|
part->char_width[x] = 2;
|
||||||
copy_screen_chars(&POS(x++, y), schar, 1);
|
copy_screen_chars(&POS(x++, y), schar, 1);
|
||||||
data = utf8_to_unicode(&chars, end);
|
schar->data = UCS_NO_CHAR;
|
||||||
if (data == UCS_NO_CHAR) goto broken_char;
|
|
||||||
schar->data = (unicode_val_T)data;
|
|
||||||
part->spaces[x] = 0;
|
part->spaces[x] = 0;
|
||||||
part->char_width[x] = 0;
|
part->char_width[x] = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user