The rewrap logic makes dealing with the cursor position a bit more complex and we had a problem where resizing the window shorter and then taller would allow the shell to cursor up into the scrollback when displaying its prompt, and allow it to overwrite something that was logically in the scrollback.