Don't add empty lines in history