billiob pushed a commit to branch master.

commit 0c1739cd285a2f9f2a2d22507fa043d9c415901a
Author: Boris Faure <[email protected]>
Date:   Tue Jun 4 23:10:58 2013 +0200

    selection: fix multiline backscroll selection
    
    If the 2nd selected line has a width of 4 but the cursor was at pos 6 on
    the 1st line, this line would get lost.
---
 src/bin/termio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index eea90f6..e739757 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -4072,7 +4072,7 @@ termio_selection_get(Evas_Object *obj, int c1x, int c1y, 
int c2x, int c2y,
         cells = termpty_cellrow_get(sd->pty, y, &w);
         if (!cells) continue;
         if (w > sd->grid.w) w = sd->grid.w;
-        if (c1x >= w) continue;
+        if (y == c1y && c1x >= w) continue;
         start_x = c1x;
         end_x = (c2x >= w) ? w - 1 : c2x;
         if (c1y != c2y)

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to