mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Bug 1139: Fix internal error: "bad split" with CONFIG_COMBINE
A combining character sequence where the base character is a space remained recorded as a space although the initial space was replaced with an internal code corresponding to the combined character. This caused an internal error when ELinks tried to split the line at that place and did not find the space. Signed-off-by: Fabienne Ducroquet <fabiduc@gmail.com>
This commit is contained in:
parent
73b09749ac
commit
ec30a09a36
@ -571,6 +571,11 @@ good_char:
|
|||||||
assert_comb_x_y_ok(document);
|
assert_comb_x_y_ok(document);
|
||||||
if_assert_failed prev = UCS_NO_CHAR;
|
if_assert_failed prev = UCS_NO_CHAR;
|
||||||
|
|
||||||
|
/* Make sure the combined character is not considered as
|
||||||
|
* a space. */
|
||||||
|
if (x)
|
||||||
|
part->spaces[x - 1] = 0;
|
||||||
|
|
||||||
if (prev != UCS_NO_CHAR)
|
if (prev != UCS_NO_CHAR)
|
||||||
document->data[document->comb_y]
|
document->data[document->comb_y]
|
||||||
.chars[document->comb_x].data = prev;
|
.chars[document->comb_x].data = prev;
|
||||||
|
Loading…
Reference in New Issue
Block a user