From c3f40b8cd871d4c84a6cf2fa16016fc64ea16e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Popadi=C4=87?= Date: Mon, 6 Jan 2014 21:43:53 +0100 Subject: [PATCH] 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 cbd100d0..c5a1de5f 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++;