ajwillia-ms pushed a commit to branch master.

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

commit fbf61bf815c38ce8699c8e2469f5164b3b8ae2de
Author: Andy Williams <a...@andywilliams.me>
Date:   Sun Jan 31 15:01:00 2016 +0000

    [zoom] fix crash fix.
    
    Sorry to anyone who lost character selection this morning...
---
 src/bin/termpty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 98240fb..612c0e9 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -787,7 +787,7 @@ termpty_row_length(Termpty *ty, int y)
    ssize_t wret;
    Termcell *cells = termpty_cellrow_get(ty, y, &wret);
 
-   if (cells)
+   if (!cells)
      return 0;
    if (y >= 0)
      return termpty_line_length(cells, ty->w);

-- 


Reply via email to