I had the same problem which was reported in bug #684445 (unreliable refresh
when scrolling in mosh), which in turn forward to this bugreport.
This patch
https://git.gnome.org/browse/vte/commit/?id=88e8e89560a62d0981ce2b18974a230d0a07dbdd
solved this issue, so please apply.
Arch linux also uses the same patch
https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/vte
(here the bug https://bugs.archlinux.org/task/37419)
Ubuntu uses the same patch from vte 1:0.28.1-1ubuntu1
(https://launchpad.net/ubuntu/+source/vte/1:0.28.1-1ubuntu1)
This is the bug report https://bugs.launchpad.net/ubuntu/+source/vte/+bug/246701
--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5