billiob pushed a commit to branch master.

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

commit e024618dba6e5a77c82c962ede749a56855539a2
Author: Boris Faure <[email protected]>
Date:   Thu Feb 21 18:42:28 2019 +0100

    termpty: compute exact line length in termpty_cellrow_get()
---
 src/bin/termpty.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 7ef9758..295fd69 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -1203,10 +1203,12 @@ termpty_cellrow_get(Termpty *ty, int y_requested, 
ssize_t *wret)
 {
    if (y_requested >= 0)
      {
+        Termcell *cells = &(TERMPTY_SCREEN(ty, 0, y_requested));
         if (y_requested >= ty->h)
           return NULL;
-        *wret = ty->w;
-        return &(TERMPTY_SCREEN(ty, 0, y_requested));
+
+        *wret = termpty_line_length(cells, ty->w);
+        return cells;
      }
    if (!ty->back)
      return NULL;

-- 


Reply via email to