Do not switch buffer if buffer already switched.

Summary:
Mutt does this. It sets the alternate buffer, it disables it, it
disables it again and enables it back.

Test Plan:
Run mutt, quit mutt, run mutt, quit mutt. You should see the
residual background from mutt.

Reviewers: billiob

Differential Revision: https://phab.enlightenment.org/D371
This commit is contained in:
Aleksandar Popadić 2013-12-10 21:32:52 +01:00 committed by Boris Faure
parent 59a7627e86
commit e170f85ce3
1 changed files with 2 additions and 2 deletions

View File

@ -840,9 +840,9 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
// into the screen2 save (so save is
// clear)
_termpty_clear_all(ty);
// swap screen content now
termpty_screen_swap(ty);
if (mode != ty->altbuf)
termpty_screen_swap(ty);
break;
case 1048:
if (mode)