From cb9524f573dc069967e6cfcd083f2c861df44cf9 Mon Sep 17 00:00:00 2001 From: raster Date: Sun, 24 Jun 2012 10:01:53 +0000 Subject: [PATCH] fix odditieis in selection text generation git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@72762 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/termio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 7b92d7f..5120387 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -1475,15 +1475,15 @@ termio_selection_get(Evas_Object *obj, int c1x, int c1y, int c2x, int c2y) eina_strbuf_append_char(sb, ' '); v--; } - if (x == (w - 1)) - { - if (!cells[x].att.autowrapped) - eina_strbuf_append_char(sb, '\n'); - } } txtlen = glyph_to_utf8(cells[x].glyph, txt); if (txtlen > 0) eina_strbuf_append_length(sb, txt, txtlen); + if (x == (w - 1)) + { + if (!cells[x].att.autowrapped) + eina_strbuf_append_char(sb, '\n'); + } } } if (last0 >= 0) -- 2.7.4