Fix screen refresh with screen, ssh, vim, ...

Summary: This closes T143.

Reviewers: billiob

Reviewed By: billiob

Maniphest Tasks: T143

Differential Revision: https://phab.enlightenment.org/D340
This commit is contained in:
Aleksandar Popadić 2013-11-18 20:45:47 +01:00 committed by Boris Faure
parent f8edf059d4
commit 7447178071
2 changed files with 2 additions and 2 deletions

View File

@ -1494,7 +1494,7 @@ termpty_cell_swap(Termpty *ty EINA_UNUSED, Termcell *src, Termcell *dst, int n)
{
t = dst[i];
dst[i] = src[i];
dst[i] = t;
src[i] = t;
}
}

View File

@ -845,7 +845,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
// swap screen content now
for (i = 0; i < size; i++)
termpty_cell_swap(ty,
&(ty->screen[(i + ty->circular_offset) % ty->h]),
&(ty->screen[(i + ty->circular_offset * ty->w) % size]),
&(ty->screen2[i]),
1);
ty->altbuf = !ty->altbuf;