1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Bug 826, UTF-8 set_hline: Don't skip the character after double-cell.

I do not fully understand this code, but I am sure skipping characters
like this is a bug, and correcting it seems to fix bug 826 (too small
table for double-cell characters).  I don't see any similar bugs in
other parts of set_hline.

The patch is from bug 826, comment 4, attachment 308.  The warning
there about unicode_to_cell(UCS_NO_CHAR) still applies but this patch
does not make the situation worse.  I have logged a separate bug 901
about those calls.
This commit is contained in:
Kalle Olavi Niemitalo 2006-12-10 03:07:00 +02:00 committed by Kalle Olavi Niemitalo
parent 47a8be1b4d
commit a1fe5cf975

View File

@ -507,7 +507,6 @@ good_char:
x++;
part->spaces[x] = 0;
part->char_width[x] = 0;
data = utf8_to_unicode(&chars, end);
}
if (data == UCS_NO_CHAR) {
/* this is at the end only */