do not append \n at end of box selection

This commit is contained in:
Boris Faure 2016-02-07 18:15:00 +01:00
parent 91842fee8a
commit b74cfc752a
1 changed files with 1 additions and 1 deletions

View File

@ -2341,7 +2341,7 @@ termio_take_selection(Evas_Object *obj, Elm_Sel_Type type)
if (tmp)
{
eina_strbuf_append_length(sb, tmp, len);
if (len && tmp[len - 1] != '\n')
if (len && tmp[len - 1] != '\n' && i != end_y)
eina_strbuf_append_char(sb, '\n');
free(tmp);
}