handle the end of line case with a quick fix -- this should really track the EOLs after a prompt