do not try to reflow altbuf

This commit is contained in:
Boris Faure 2013-11-10 15:34:40 +01:00
parent abaee4afd9
commit 4d629c5575
1 changed files with 6 additions and 2 deletions

View File

@ -815,9 +815,11 @@ _termpty_vertically_expand(Termpty *ty, int old_w, int old_h,
Termcell *old_screen)
{
int from_history = 0, y;
if (ty->altbuf) return;
termpty_save_freeze();
if (ty->backmax > 0)
from_history = MIN(ty->h - old_h, ty->backscroll_num);
if (old_screen)
@ -879,6 +881,8 @@ _termpty_vertically_shrink(Termpty *ty, int old_w, int old_h,
y;
Termcell *src, *dst;
if (ty->altbuf) return;
termpty_save_freeze();
old_circular_offset = ty->circular_offset;