terminology: fix potential segfault when writing after end of line

SVN revision: 78619
This commit is contained in:
Boris Faure 2012-10-29 19:02:40 +00:00
parent d9e70cefbc
commit 4b64f43863
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ _termpty_text_append(Termpty *ty, const Eina_Unicode *codepoints, int len)
{
ty->state.wrapnext = 0;
ty->state.cx++;
if (ty->state.cx >= (ty->w - 1)) return;
#if defined(SUPPORT_DBLWIDTH)
if (cells[ty->state.cx].att.dblwidth)
{