raster pushed a commit to branch master.

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

commit 6268dc32e49a599ebd000d7300715c0d832c0734
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Feb 3 14:45:23 2015 +0900

    terminology - fix double click selection and jed display
    
    this fixes breaks introduced by
    e94051dd86fde0eb13993c32a99cb463b8a5b724 (the previous commit).
    
    latest commit: e94051dd86fde0eb13993c32a99cb463b8a5b724
    
    breaks 2 things.
    
    1. double-click to select a "word" is broken. the right end of the 
selection is
    stuck at the point where the cursor is, not the right end of the word. try 
it.
    at least that is what i see. either way double-click to select a word is now
    broken. ;(
    
    2. what used to be black whitespace bg is now "empty" chars (so i see
    terminology bg). this breaks jed output pretty badly.
    
    see...
    
    working:
    http://www.enlightenment.org/ss/e-54d05f357a3391.24747752.png
    
    not working:
    http://www.enlightenment.org/ss/e-54d05f672a4df7.83729511.png
---
 src/bin/termpty.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 63d2c7b..5a6a95d 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -631,11 +631,10 @@ termpty_cellrow_get(Termpty *ty, int y, int *wret)
 
    if (y >= 0)
      {
-        Termcell *cells;
         if (y >= ty->h) return NULL;
-        cells = &(TERMPTY_SCREEN(ty, 0, y));
-        *wret = termpty_line_length(cells, ty->w);
-        return cells;
+        *wret = ty->w;
+        /* fprintf(stderr, "getting: %i (%i, %i)\n", y, ty->circular_offset, 
ty->h); */
+        return &(TERMPTY_SCREEN(ty, 0, y));
      }
    if ((y < -ty->backmax) || !ty->back) return NULL;
    tssrc = &(ty->back[(ty->backmax + ty->backpos + y) % ty->backmax]);

-- 


Reply via email to