reflow: do not always reset circular_offset on resize

This commit is contained in:
Boris Faure 2013-03-25 23:33:29 +01:00
parent df08549f84
commit 9c9a05e958
1 changed files with 1 additions and 1 deletions

View File

@ -710,6 +710,7 @@ expand_screen:
ty->state.cy -= old_h - y;
if (ty->state.cy < 0) ty->state.cy = 0;
}
ty->circular_offset = 0;
}
static void
@ -1091,7 +1092,6 @@ termpty_resize(Termpty *ty, int w, int h)
free(olds); olds = NULL;
free(olds2); olds2 = NULL;
ty->circular_offset = 0;
}
if (ty->h > oldh)