forked from enlightenment/terminology
fix termio_selection_get() on backscroll
Add a newline if trying to select after the end of line
This commit is contained in:
parent
1f069a2fbe
commit
ce9220ef35
|
@ -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);
|
cells = termpty_cellrow_get(sd->pty, y, &w);
|
||||||
if (!cells) continue;
|
if (!cells) continue;
|
||||||
if (w > sd->grid.w) w = sd->grid.w;
|
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;
|
start_x = c1x;
|
||||||
end_x = (c2x >= w) ? w - 1 : c2x;
|
end_x = (c2x >= w) ? w - 1 : c2x;
|
||||||
if (c1y != c2y)
|
if (c1y != c2y)
|
||||||
|
|
Loading…
Reference in New Issue