forked from enlightenment/terminology
terminology: fix potential segfault when writing after end of line
SVN revision: 78619
This commit is contained in:
parent
d9e70cefbc
commit
4b64f43863
|
@ -208,6 +208,7 @@ _termpty_text_append(Termpty *ty, const Eina_Unicode *codepoints, int len)
|
||||||
{
|
{
|
||||||
ty->state.wrapnext = 0;
|
ty->state.wrapnext = 0;
|
||||||
ty->state.cx++;
|
ty->state.cx++;
|
||||||
|
if (ty->state.cx >= (ty->w - 1)) return;
|
||||||
#if defined(SUPPORT_DBLWIDTH)
|
#if defined(SUPPORT_DBLWIDTH)
|
||||||
if (cells[ty->state.cx].att.dblwidth)
|
if (cells[ty->state.cx].att.dblwidth)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue