I think the bug is located in the terminal emulation code related to handling of alternate screens with regards to resizing. It's not technically wrong to truncate a screen area that is located off screen.
While we're at it, can we give you something relevant to work on? Cheers! mar77i