Update terminal sizes in any case when new vt(4) driver arrive.

(Plus remove one unused newline)

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Aleksandr Rybalko 2014-05-12 19:29:38 +00:00
parent 6a7b4173a0
commit ae866603c7

View File

@ -1981,8 +1981,11 @@ vt_upgrade(struct vt_device *vd)
unsigned int i;
/* Device didn't pass vd_init() or already upgraded. */
if (vd->vd_flags & (VDF_ASYNC|VDF_DEAD))
if (vd->vd_flags & (VDF_ASYNC|VDF_DEAD)) {
/* Refill settings with new sizes anyway. */
vt_resize(vd);
return;
}
vd->vd_flags |= VDF_ASYNC;
for (i = 0; i < VT_MAXWINDOWS; i++) {
@ -2019,7 +2022,6 @@ vt_upgrade(struct vt_device *vd)
/* Refill settings with new sizes. */
vt_resize(vd);
}
static void