}
}
-static void
-_clear_selection(Evas_Object *obj)
-{
- Termio *sd = evas_object_smart_data_get(obj);
- if (!sd) return;
- if (!sd->win) return;
- elm_object_cnp_selection_clear(sd->win, ELM_SEL_TYPE_PRIMARY);
-}
-
static Eina_Bool
_getsel_cb(void *data, Evas_Object *obj, Elm_Selection_Data *ev)
{
}
else
{
- if (sd->cur.sel)
- {
- sd->cur.sel = 0;
- _clear_selection(data);
- }
+ if (sd->cur.sel) sd->cur.sel = 0;
sd->cur.makesel = 1;
sd->cur.sel1.x = cx;
sd->cur.sel1.y = cy - sd->scroll;
w = 0;
last0 = -1;
- cells = termpty_cellrow_get(sd->pty, y - sd->scroll, &w);
+ cells = termpty_cellrow_get(sd->pty, y, &w);
if (w > sd->grid.w) w = sd->grid.w;
x1 = c1x;
x2 = c2x;