fix termio_selection_get() on backscroll

Add a newline if trying to select after the end of line
This commit is contained in:
Boris Faure 2013-06-06 22:59:26 +02:00
parent 1f069a2fbe
commit ce9220ef35
1 changed files with 5 additions and 1 deletions

View File

@ -4072,7 +4072,11 @@ termio_selection_get(Evas_Object *obj, int c1x, int c1y, int c2x, int c2y,
cells = termpty_cellrow_get(sd->pty, y, &w);
if (!cells) continue;
if (w > sd->grid.w) w = sd->grid.w;
if (y == c1y && c1x >= w) continue;
if (y == c1y && c1x >= w)
{
eina_strbuf_append_char(sb, '\n');
continue;
}
start_x = c1x;
end_x = (c2x >= w) ? w - 1 : c2x;
if (c1y != c2y)