Avoid lines filled up with spaces in the restricted scrolling area.

https://bugzilla.gnome.org/show_bug.cgi?id=336238#c88