Small fix for a bug which can show up when a command generates a large output and needs to be framed.
Small fix for a bug which can show up when a command generates a large output and needs to be framed.

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