Commit 90006b34 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 104486c6
......@@ -527,6 +527,10 @@ _vte_ring_thaw_row (VteRing *ring, gulong position, VteRowData *row, gboolean do
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 != NULL)
......
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