A good habit to have is to periodically press ctrl+c (or command+c on mac) so your recent typing is in the clipboard just in case.