Commit 6c37e516 authored by Akira Nakajima's avatar Akira Nakajima Committed by Egmont Koblinger

ring: Fix thawing combining accents over a double-wide character

https://bugzilla.gnome.org/show_bug.cgi?id=795192
(cherry picked from commit 441ea0ed)
parent 2b376efd
......@@ -489,6 +489,10 @@ Ring::thaw_row(row_t position,
if (G_LIKELY (row->len)) {
/* Combine it */
row->cells[row->len - 1].c = _vte_unistr_append_unichar (row->cells[row->len - 1].c, cell.c);
/* Spread it to all the previous cells of a potentially multicell character */
for (int i = row->len - 1; i >= 1 && row->cells[i].attr.fragment(); i--) {
row->cells[i - 1].c = row->cells[i].c;
}
} else {
cell.attr.set_columns(1);
if (row->len == hyperlink_column && hyperlink != nullptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment