billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=98671b24936d774778ccc258f6d8fe7e6a315ab3
commit 98671b24936d774778ccc258f6d8fe7e6a315ab3 Author: Boris Faure <bill...@gmail.com> Date: Wed Jan 27 12:49:24 2016 +0100 fix one-char selections --- src/bin/termio.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index d75f8ab..f2f58d3 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -2334,6 +2334,13 @@ termio_take_selection(Evas_Object *obj, Elm_Sel_Type type) INT_SWAP(start_x, end_x); } } + else + if (sd->link.string) + { + len = strlen(sd->link.string); + s = strndup(sd->link.string, len); + } + return; if (sd->pty->selection.is_box) { @@ -2359,12 +2366,7 @@ termio_take_selection(Evas_Object *obj, Elm_Sel_Type type) s = eina_strbuf_string_steal(sb); eina_strbuf_free(sb); } - else if (!start_y && !end_y && !start_x && !end_x && sd->link.string) - { - len = strlen(sd->link.string); - s = strndup(sd->link.string, len); - } - else if ((start_x != end_x) || (start_y != end_y)) + else { s = termio_selection_get(obj, start_x, start_y, end_x, end_y, &len, EINA_TRUE); --