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
This commit is contained in:
Aleksandar Popadić 2014-01-06 21:43:53 +01:00 committed by Boris Faure
parent cf5e838084
commit c3f40b8cd8
1 changed files with 1 additions and 1 deletions

View File

@ -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++;