forked from enlightenment/terminology
termiointernals: remove empty selections
This commit is contained in:
parent
553e12e6a0
commit
bebb0872c3
|
@ -748,6 +748,7 @@ _to_trim(Eina_Unicode codepoint, Eina_Bool right_trim)
|
||||||
{
|
{
|
||||||
static const Eina_Unicode trim_chars[] =
|
static const Eina_Unicode trim_chars[] =
|
||||||
{
|
{
|
||||||
|
' ',
|
||||||
':',
|
':',
|
||||||
'<',
|
'<',
|
||||||
'>',
|
'>',
|
||||||
|
@ -795,8 +796,7 @@ _trim_sel_word(Termio *sd)
|
||||||
((y == pty->selection.end.y) &&
|
((y == pty->selection.end.y) &&
|
||||||
(start > pty->selection.end.x)))
|
(start > pty->selection.end.x)))
|
||||||
{
|
{
|
||||||
pty->selection.start.y = pty->selection.end.y;
|
termio_sel_set(sd, EINA_FALSE);
|
||||||
pty->selection.start.x = pty->selection.end.x;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pty->selection.start.y = y;
|
pty->selection.start.y = y;
|
||||||
|
@ -827,8 +827,7 @@ _trim_sel_word(Termio *sd)
|
||||||
((y == pty->selection.start.y) &&
|
((y == pty->selection.start.y) &&
|
||||||
(end < pty->selection.start.x)))
|
(end < pty->selection.start.x)))
|
||||||
{
|
{
|
||||||
pty->selection.end.x = pty->selection.start.x;
|
termio_sel_set(sd, EINA_FALSE);
|
||||||
pty->selection.end.y = pty->selection.start.y;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pty->selection.end.x = end;
|
pty->selection.end.x = end;
|
||||||
|
|
Loading…
Reference in New Issue