Fix for an annoying 'bouncing' bug which was introduced by the previous commit.
Fix for an annoying 'bouncing' bug which was introduced by the previous commit.

sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm