billiob pushed a commit to branch master.

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

commit c3f40b8cd871d4c84a6cf2fa16016fc64ea16e41
Author: Aleksandar Popadić <aleksandar.popa...@siol.net>
Date:   Mon Jan 6 21:43:53 2014 +0100

    Set the autowrap switch at the end of the line not before
    
    Summary:
    All the rest of the code expects the autowrap switch to be set at the
    end of the line. Now in the case of double width characters the autowrap 
switch
    is set before the line ending.
    
    Reviewers: billiob
    
    Differential Revision: https://phab.enlightenment.org/D433
---
 src/bin/termptyops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index cbd100d..c5a1de5 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -183,7 +183,7 @@ _termpty_text_append(Termpty *ty, const Eina_Unicode 
*codepoints, int len)
 
         if (ty->state.wrapnext)
           {
-             cells[ty->state.cx].att.autowrapped = 1;
+             cells[ty->w - 1].att.autowrapped = 1;
              ty->state.wrapnext = 0;
              ty->state.cx = 0;
              ty->state.cy++;

-- 


Reply via email to