billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=bebb0872c380937f938d1610c368c35f08199eca

commit bebb0872c380937f938d1610c368c35f08199eca
Author: Boris Faure <[email protected]>
Date:   Sat Feb 23 13:34:31 2019 +0100

    termiointernals: remove empty selections
---
 src/bin/termiointernals.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/bin/termiointernals.c b/src/bin/termiointernals.c
index e87e7d7..4483c4e 100644
--- a/src/bin/termiointernals.c
+++ b/src/bin/termiointernals.c
@@ -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;

-- 


Reply via email to