termiointernals: remove empty selections

This commit is contained in:
Boris Faure 2019-02-23 13:34:31 +01:00
parent 553e12e6a0
commit bebb0872c3
1 changed files with 3 additions and 4 deletions

View File

@ -748,6 +748,7 @@ _to_trim(Eina_Unicode codepoint, Eina_Bool right_trim)
{
static const Eina_Unicode trim_chars[] =
{
' ',
':',
'<',
'>',
@ -795,8 +796,7 @@ _trim_sel_word(Termio *sd)
((y == pty->selection.end.y) &&
(start > pty->selection.end.x)))
{
pty->selection.start.y = pty->selection.end.y;
pty->selection.start.x = pty->selection.end.x;
termio_sel_set(sd, EINA_FALSE);
return;
}
pty->selection.start.y = y;
@ -827,8 +827,7 @@ _trim_sel_word(Termio *sd)
((y == pty->selection.start.y) &&
(end < pty->selection.start.x)))
{
pty->selection.end.x = pty->selection.start.x;
pty->selection.end.y = pty->selection.start.y;
termio_sel_set(sd, EINA_FALSE);
return;
}
pty->selection.end.x = end;