selection: fix multiline backscroll selection
If the 2nd selected line has a width of 4 but the cursor was at pos 6 on the 1st line, this line would get lost.
This commit is contained in:
parent
ba9467d780
commit
0c1739cd28
|
@ -4072,7 +4072,7 @@ 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 (c1x >= w) continue;
|
||||
if (y == c1y && c1x >= w) continue;
|
||||
start_x = c1x;
|
||||
end_x = (c2x >= w) ? w - 1 : c2x;
|
||||
if (c1y != c2y)
|
||||
|
|
Loading…
Reference in New Issue