Bugfixes related to text widget selection and auto-scrolling

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>