diff options
author | Egmont Koblinger <egmont@gmail.com> | 2015-10-02 19:38:38 +0200 |
---|---|---|
committer | Egmont Koblinger <egmont@gmail.com> | 2015-10-02 19:42:06 +0200 |
commit | 401d18e91bea12a0cf2e0c0b00605d99c1b372fd (patch) | |
tree | 11da3e82223c4b13224bf6d64bba61282c277839 | |
parent | 1b853f94159ff1d7720dd2e1a8bbe7a6360fca36 (diff) | |
download | vte-401d18e91bea12a0cf2e0c0b00605d99c1b372fd.tar.gz |
widget: Fix painting the preedit text near the right margin
https://bugzilla.gnome.org/show_bug.cgi?id=755668
(cherry picked from commit d69645413f35ba6ebff9359a89bd121733a2e475)
-rw-r--r-- | src/vte.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -760,9 +760,9 @@ _vte_invalidate_cursor_once(VteTerminal *terminal, gboolean periodic) columns++; } } - if (preedit_width > 0) { - columns += preedit_width; - columns++; /* one more for the preedit cursor */ + columns = MAX(columns, preedit_width); + if (column + columns > terminal->pvt->column_count) { + column = MAX(0, terminal->pvt->column_count - columns); } _vte_debug_print(VTE_DEBUG_UPDATES, |