billiob pushed a commit to branch master.

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

commit cf1c8f7c02eea315b2a1a3a13ccfc847685fb93a
Author: Boris Faure <bill...@gmail.com>
Date:   Fri Feb 13 22:59:56 2015 +0100

    move selection when content underneath scrolls
---
 src/bin/termio.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index bf26172..3a3fb63 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -145,14 +145,14 @@ termio_scroll(Evas_Object *obj, int direction, int 
start_y, int end_y)
         if (!ty->selection.is_top_to_bottom)
              INT_SWAP(sel_start_y, sel_end_y);
         if (start_y <= sel_start_y &&
-            end_y >= sel_end_y)
+            sel_end_y <= end_y)
           {
              ty->selection.start.y += direction;
              ty->selection.end.y += direction;
              sel_start_y += direction;
              sel_end_y += direction;
              if (!(start_y <= sel_start_y &&
-                 end_y >= sel_end_y))
+                 sel_end_y <= end_y))
                {
                   _sel_set(sd, EINA_FALSE);
                }
@@ -163,11 +163,6 @@ termio_scroll(Evas_Object *obj, int direction, int 
start_y, int end_y)
             {
                _sel_set(sd, EINA_FALSE);
             }
-        else
-          {
-             ty->selection.start.y += direction;
-             ty->selection.end.y += direction;
-          }
      }
    if (sd->link.string)
      {

-- 


Reply via email to