Fixed select all to grab the last line as well.