From 669a107be72a9303778dfc3ce1434ed5542e28cb Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 29 Jun 2014 17:18:11 +0200 Subject: [PATCH] fix missing newlines on selections. Closes T1387 --- src/bin/termio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 95671f3b..44ea1a9e 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -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');