termptyesc: use wrapper, usefull for testing

This commit is contained in:
Boris Faure 2023-08-21 16:26:08 +02:00
parent 91ef922776
commit e4a2bbb0f5
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: EAA9CD729F522998
1 changed files with 2 additions and 2 deletions

View File

@ -4408,14 +4408,14 @@ _handle_osc_selection(Termpty *ty, Eina_Unicode *p, int len)
{
sel_type = _elm_sel_type_from_osc52(*p);
cb.sel = sel_type;
elm_cnp_selection_get(ty->obj, cb.sel, ELM_SEL_FORMAT_TEXT,
termio_selection_buffer_get_cb(ty->obj, cb.sel, ELM_SEL_FORMAT_TEXT,
_osc52_report_cb, &cb);
c++;
}
if (!cb.has_data)
{
cb.sel = ELM_SEL_TYPE_PRIMARY;
elm_cnp_selection_get(ty->obj, cb.sel, ELM_SEL_FORMAT_TEXT,
termio_selection_buffer_get_cb(ty->obj, cb.sel, ELM_SEL_FORMAT_TEXT,
_osc52_report_cb, &cb);
}
}