fix missing newlines on selections. Closes T1387

This commit is contained in:
Boris Faure 2014-06-29 17:18:11 +02:00
parent 223ed1651c
commit 669a107be7
1 changed files with 2 additions and 1 deletions

View File

@ -4670,7 +4670,8 @@ termio_selection_get(Evas_Object *obj, int c1x, int c1y, int c2x, int c2y,
txtlen = codepoint_to_utf8(cells[x].codepoint, txt);
if (txtlen > 0)
eina_strbuf_append_length(sb, txt, txtlen);
if ((x == (w - 1)) && (x != c2x))
if ((x == (w - 1)) &&
((x != c2x) || (y != c2y)))
{
if (!cells[x].att.autowrapped)
eina_strbuf_append_char(sb, '\n');