billiob pushed a commit to branch master.

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

commit 0e18a185fef56caa09527d77ad51b75e32b0fd93
Author: Boris Faure <bill...@gmail.com>
Date:   Sat Apr 18 22:44:42 2015 +0200

    correctly handle empty lines when doing selections
---
 src/bin/termio.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index ae4a7da..732de73 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -2055,7 +2055,11 @@ termio_selection_get(Evas_Object *obj, int c1x, int c1y, 
int c2x, int c2y,
         w = 0;
         last0 = -1;
         cells = termpty_cellrow_get(sd->pty, y, &w);
-        if (!cells) continue;
+        if (!cells || !w)
+          {
+             if (_sb_add(&sb, "\n", 1) < 0) goto err;
+             continue;
+          }
         if (w > sd->grid.w) w = sd->grid.w;
         if (y == c1y && c1x >= w)
           {

-- 


Reply via email to