screen: use the correct width to determine whether a softwrap occurred

This fixes the two bugs reported by Anton Minaev
in https://savannah.gnu.org/bugs/?49511.
2 files changed